rustfmt src/uu/wc/src/wc.rs

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
This commit is contained in:
Otto Rottier
2020-05-04 07:45:30 +02:00
committed by GitHub
co-authored by Sylvestre Ledru
parent e3bd6b6848
commit dab1b9ba1a
+1 -2
View File
@@ -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[..])?;