Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ zv: impl Display for Value, Array, Structure, Dict & Maybe #379

Merged
merged 1 commit into from Jul 5, 2023

Conversation

SeaDve
Copy link
Contributor

@SeaDve SeaDve commented Jun 11, 2023

Closes #366

Marked as a draft since bytestring and str Display implementations are currently broken on edge cases.

zvariant/src/display.rs Outdated Show resolved Hide resolved
zvariant/src/display.rs Outdated Show resolved Hide resolved
@SeaDve SeaDve force-pushed the value-display branch 3 times, most recently from 9838d17 to dfe939d Compare June 12, 2023 04:46
@SeaDve SeaDve marked this pull request as ready for review June 12, 2023 04:47
zvariant/src/value.rs Outdated Show resolved Hide resolved
zvariant/Cargo.toml Outdated Show resolved Hide resolved
zvariant/src/maybe.rs Outdated Show resolved Hide resolved
zvariant/src/maybe.rs Show resolved Hide resolved
zvariant/src/value.rs Outdated Show resolved Hide resolved
@SeaDve SeaDve force-pushed the value-display branch 6 times, most recently from 251cc5d to 06d8cf1 Compare June 26, 2023 10:01
@zeenix
Copy link
Contributor

zeenix commented Jun 28, 2023

Just FYI, related: #394

@zeenix
Copy link
Contributor

zeenix commented Jun 28, 2023

@SeaDve please let me know when this is ready from your side.

@SeaDve
Copy link
Contributor Author

SeaDve commented Jul 4, 2023

Sorry for taking too long to reply, just finished my finals.

@SeaDve please let me know when this is ready from your side.

Sure

@SeaDve
Copy link
Contributor Author

SeaDve commented Jul 5, 2023

I think it is now ready.

The extra dep is now removed, and the debug impl of str is now used internally instead. Thus, it uses the double quotes instead of single quotes. Also, changed the impl of objectpath and signature to match it.

Copy link
Contributor

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for seeing this through. 👍

@zeenix zeenix merged commit 3a27fd7 into dbus2:main Jul 5, 2023
7 checks passed
@SeaDve SeaDve deleted the value-display branch July 5, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add way to display Value nicely
3 participants