1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

Fix a clippy warning

This commit is contained in:
Sylvestre Ledru 2022-11-11 08:20:24 +01:00 committed by GitHub
parent b821d21b7f
commit abfccb351f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1500,7 +1500,7 @@ fn copy_file(
copy_attributes(source, dest, &options.preserve_attributes)?; copy_attributes(source, dest, &options.preserve_attributes)?;
if let Some(progress_bar) = progress_bar { if let Some(progress_bar) = progress_bar {
progress_bar.inc(fs::metadata(&source)?.len()); progress_bar.inc(fs::metadata(source)?.len());
} }
Ok(()) Ok(())