diff rust/hg-core/src/revlog/filelog.rs @ 52291:f90796d33aa0

rust: fix clippy lints These were highlighted by the latest version of clippy (1.82.0).
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 29 Oct 2024 11:35:01 +0100
parents a3fa37bdb7ec
children b0b6c28b340b
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/filelog.rs	Tue Oct 29 11:00:04 2024 +0100
+++ b/rust/hg-core/src/revlog/filelog.rs	Tue Oct 29 11:35:01 2024 +0100
@@ -217,7 +217,7 @@
 impl FilelogRevisionData {
     /// Split into metadata and data
     pub fn split(&self) -> Result<(Option<&[u8]>, &[u8]), HgError> {
-        const DELIMITER: &[u8; 2] = &[b'\x01', b'\n'];
+        const DELIMITER: &[u8; 2] = b"\x01\n";
 
         if let Some(rest) = self.0.drop_prefix(DELIMITER) {
             if let Some((metadata, data)) = rest.split_2_by_slice(DELIMITER) {