compression: clone_from_slice -> copy_from_slice

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-04-13 09:07:33 +02:00
parent e7e4411f44
commit fa5373c5c0

View File

@ -124,7 +124,7 @@ async fn append_data<W: AsyncWrite + Unpin, R: AsyncRead + Unpin>(
fn get_gnu_header(size: u64, entry_type: EntryType) -> Header {
let mut header = Header::new_gnu();
let name = b"././@LongLink";
header.as_gnu_mut().unwrap().name[..name.len()].clone_from_slice(&name[..]);
header.as_gnu_mut().unwrap().name[..name.len()].copy_from_slice(&name[..]);
header.set_mode(0o644);
header.set_uid(0);
header.set_gid(0);