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

Merge pull request #1314 from teresy/shorthand-fields

refactor: use shorthand fields
This commit is contained in:
Alex Lyon 2019-02-07 00:41:00 -08:00 committed by GitHub
commit 677953b2b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>,
}; };