Commit 34b3ebd3 authored by Alex DeLorenzo's avatar Alex DeLorenzo
Browse files

dd: Fix "warning: trait objects without an explicit `dyn` are deprecated"

parent df3400f9
......@@ -82,7 +82,7 @@ fn main() {
let count: i64 = pp!("count");
let status: usize = pp!("status");
let mut input: Box<Read> = match parser.found("if") {
let mut input: Box<dyn Read> = match parser.found("if") {
true => {
let path = parser.get_setting("if").unwrap();
Box::new(File::open(path).unwrap_or_else(|message| {
......@@ -94,7 +94,7 @@ fn main() {
false => Box::new(stdin),
};
let mut output: Box<Write> = match parser.found("of") {
let mut output: Box<dyn Write> = match parser.found("of") {
true => {
let path = parser.get_setting("of").unwrap();
Box::new(File::create(path).unwrap_or_else(|message| {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment