comparison rust/hg-core/src/revlog/changelog.rs @ 51693:918ceb5a3d25

rust: apply clippy lints They are at most harmless and at best make the codebase more readable and simpler.
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 13:35:39 +0200
parents 6603a1448f18
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51692:771598067be2 51693:918ceb5a3d25
711 (&b"\xF0\x9F\xA6\x80 non-ascii-key:"[..], "non-ASCII key"), 711 (&b"\xF0\x9F\xA6\x80 non-ascii-key:"[..], "non-ASCII key"),
712 ]; 712 ];
713 713
714 for (extra, msg) in test_cases { 714 for (extra, msg) in test_cases {
715 assert!( 715 assert!(
716 decode_extra(&extra).is_err(), 716 decode_extra(extra).is_err(),
717 "corrupt extra should have failed to parse: {}", 717 "corrupt extra should have failed to parse: {}",
718 msg 718 msg
719 ); 719 );
720 } 720 }
721 } 721 }