1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

refactor: use shorthand fields

This commit is contained in:
Rijnard van Tonder 2018-11-07 13:26:03 -05:00
parent b8dbefcb71
commit 436892269f

View file

@ -93,7 +93,7 @@ fn tee(options: Options) -> Result<()> {
.map(|file| open(file, options.append))
.collect();
writers.push(Box::new(stdout()));
let output = &mut MultiWriter { writers: writers };
let output = &mut MultiWriter { writers };
let input = &mut NamedReader {
inner: Box::new(stdin()) as Box<Read>,
};