refactor: use shorthand fields

This commit is contained in:
Rijnard van Tonder
2018-11-07 13:26:03 -05:00
parent b8dbefcb71
commit 436892269f
+1 -1
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>,
};