mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
rustfmt src/uu/wc/src/wc.rs
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
This commit is contained in:
co-authored by
Sylvestre Ledru
parent
e3bd6b6848
commit
dab1b9ba1a
+1
-2
@@ -147,8 +147,7 @@ fn wc(files: Vec<String>, settings: &Settings) -> StdResult<(), i32> {
|
||||
let mut max_width: usize = 0;
|
||||
|
||||
// we do not need to decode the byte stream if we're only counting bytes/newlines
|
||||
let decode_chars = settings.show_chars
|
||||
|| settings.show_words || settings.show_max_line_length;
|
||||
let decode_chars = settings.show_chars || settings.show_words || settings.show_max_line_length;
|
||||
|
||||
for path in &files {
|
||||
let mut reader = open(&path[..])?;
|
||||
|
||||
Reference in New Issue
Block a user