Mercurial > hg
diff rust/hg-core/src/revlog/changelog.rs @ 51707:ec7171748350
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 | 7f0cb9ee0534 |
children | bbe59cc5d2e1 |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/changelog.rs Tue Jul 23 14:25:23 2024 +0200 +++ b/rust/hg-core/src/revlog/changelog.rs Thu Jul 18 13:35:39 2024 +0200 @@ -617,7 +617,7 @@ #[test] fn test_unescape_nul_followed_by_octal() { // Escaped NUL chars followed by octal digits are decoded correctly. - let expected = b"\012"; + let expected = b"\x0012"; let escaped = br"\012"; let unescaped = unescape_extra(escaped); assert_eq!(&expected[..], &unescaped[..]); @@ -713,7 +713,7 @@ for (extra, msg) in test_cases { assert!( - decode_extra(&extra).is_err(), + decode_extra(extra).is_err(), "corrupt extra should have failed to parse: {}", msg );