1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

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
parent e3bd6b6848
commit dab1b9ba1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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[..])?;