5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2024-12-22 21:33:50 +03:00

clippy fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-10-27 15:25:50 +02:00
parent 6ec9e99994
commit 165dcc33a2

View 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 offset_bytes = (current_offset - target_offset.0).to_le_bytes();
let target_bytes = target.as_os_str().as_bytes(); let target_bytes = target.as_os_str().as_bytes();
let mut hardlink = Vec::with_capacity(offset_bytes.len() + target_bytes.len() + 1); 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.extend(target_bytes);
hardlink.push(0); hardlink.push(0);
let _this_offset: LinkOffset = self let _this_offset: LinkOffset = self