Serialize impl and Display impl yields different case #323
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid#323
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
By default
Uuids gets serialized with lowercase but theirfmt::Displaywrites the uuid in uppercase.github.com/uuid-rs/uuid@10e1b423ae/src/serde_support.rs (L23)github.com/uuid-rs/uuid@f414b35105/src/adapter/core_support/mod.rs (L105)Expected behavior
Making these do the same would make the behavior be less surprising.
Specifications (please complete the following information):
Thanks @Marwes for the report. That is indeed a bug. It should be lowercase by default
Hi @Marwes you are free to submit a PR that fixes it. Else will get it done myself whenever possible.
Wait, no this is actually correct. Both implementations use lower case I just got things mixed up with a Uuid wrapper I have which defaults to uppercase :(