-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
author Luuk van der Duim <[email protected]> 1686656206 +0200 committer Luuk van der Duim <[email protected]> 1686917212 +0200 🩹 🚸 zv: `Signature` equality regardless of outer parentheses This commit adjusts the `PartialEq` impls to evaluate equality irrespective of their marshalled state. Two signatures representing the same type can differ as a result of D-Bus marshalling. D-Bus marshalling will omit outer parentheses from body singatures. Consider a `MyType { a: i32, b: i32}`: `MyType::signature()` returns a "(ii)" `Signature` whereas `Message::body_signature()` embedding the same `MyType` body, would return a "ii" `Signature` This may lead to unexpected inequality of `Signature`s.
- Loading branch information
1 parent
14218cd
commit 5fe0d63
Showing
2 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters