Regenarate all files

This fixes all deprecation warnings.
This commit is contained in:
Sebastian Thiel
2020-01-18 20:47:02 +08:00
parent b66f868ed1
commit 80bf4495f7
589 changed files with 19665 additions and 19665 deletions

View File

@@ -402,7 +402,7 @@ pub fn input_mime_from_opts(mime: &str, err: &mut InvalidOptionsError) -> Option
}
}
pub fn writer_from_opts(arg: Option<&str>) -> Result<Box<Write>, io::Error> {
pub fn writer_from_opts(arg: Option<&str>) -> Result<Box<dyn Write>, io::Error> {
let f = arg.unwrap_or("-");
match f {
"-" => Ok(Box::new(stdout())),
@@ -700,7 +700,7 @@ pub struct InvalidOptionsError {
impl fmt::Display for InvalidOptionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
for issue in &self.issues {
try!(issue.fmt(f));
issue.fmt(f)?;
}
Ok(())
}