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

another clippy fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-12-01 14:10:33 +01:00
parent 81d500297d
commit c40ababaac

View File

@ -774,6 +774,7 @@ impl<'a, T: SeqWrite + 'a> EncoderImpl<'a, T> {
tail.sort_unstable_by(|a, b| a.hash.cmp(&b.hash));
let mut bst = Vec::with_capacity(tail.len() + 1);
#[allow(clippy::uninit_vec)]
unsafe {
bst.set_len(tail.len());
}