1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +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)) .map(|file| open(file, options.append))
.collect(); .collect();
writers.push(Box::new(stdout())); writers.push(Box::new(stdout()));
let output = &mut MultiWriter { writers: writers }; let output = &mut MultiWriter { writers };
let input = &mut NamedReader { let input = &mut NamedReader {
inner: Box::new(stdin()) as Box<Read>, inner: Box::new(stdin()) as Box<Read>,
}; };