Skip to content

Commit

Permalink
Comment on magic numbers while slicing into the signature
Browse files Browse the repository at this point in the history
  • Loading branch information
luukvanderduim committed Jun 25, 2024
1 parent 94192a6 commit d478e27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions atspi-common/src/object_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ mod tests {
#[test]
fn validate_match_type_signature() {
let rule_signature = method_args_signature!(member: "GetMatchesTo", interface: "org.a11y.atspi.Collection", argument: "rule");
// The match type signature is the fourth element in the signature
let match_type_signature = rule_signature.slice(3..4);
assert_eq!(MatchType::signature(), match_type_signature);
}
Expand Down

0 comments on commit d478e27

Please sign in to comment.