]> git.proxmox.com Git - pxar.git/commitdiff
clippy fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 27 Oct 2022 13:25:50 +0000 (15:25 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 27 Oct 2022 13:25:50 +0000 (15:25 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/encoder/mod.rs

index d14b2d04765bce11378af2de2007205675f64635..33e048111bd77b20b7e9c6b665635e5242941702 100644 (file)
@@ -467,7 +467,7 @@ impl<'a, T: SeqWrite + 'a> EncoderImpl<'a, T> {
         let offset_bytes = (current_offset - target_offset.0).to_le_bytes();
         let target_bytes = target.as_os_str().as_bytes();
         let mut hardlink = Vec::with_capacity(offset_bytes.len() + target_bytes.len() + 1);
-        hardlink.extend(&offset_bytes);
+        hardlink.extend(offset_bytes);
         hardlink.extend(target_bytes);
         hardlink.push(0);
         let _this_offset: LinkOffset = self