Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed Oct 24, 2019
1 parent 20f8557 commit 44264dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn run() -> Result<()> {
// because we wrap the `BufReader` around the box, we only do that
// dispatch once per buffer flush, not on every tiny write.
let stdin = io::stdin();
let unbuffered_input: Box<Read> = if let Some(ref path) = args.arg_input {
let unbuffered_input: Box<dyn Read> = if let Some(ref path) = args.arg_input {
Box::new(fs::File::open(path)?)
} else {
Box::new(stdin.lock())
Expand Down

0 comments on commit 44264dc

Please sign in to comment.