diff --git a/src/uu/wc/src/count_fast.rs b/src/uu/wc/src/count_fast.rs index 487893b9f..85d3d1d2b 100644 --- a/src/uu/wc/src/count_fast.rs +++ b/src/uu/wc/src/count_fast.rs @@ -173,12 +173,11 @@ pub(crate) fn count_bytes_fast(handle: &mut T) -> (usize, Opti if let Some(file) = handle.inner_file() { if let Ok(metadata) = file.metadata() { let attributes = metadata.file_attributes(); - let size = metadata.file_size(); if (attributes & FILE_ATTRIBUTE_ARCHIVE) != 0 || (attributes & FILE_ATTRIBUTE_NORMAL) != 0 { - return (size as usize, None); + return (metadata.file_size() as usize, None); } } }