style: fix deprecations

Use `dyn` for trait objects and use `..=` for inclusive ranges.
This commit is contained in:
Andrew Gallant
2019-06-16 18:37:51 -04:00
parent 9f000c2910
commit 7b9972c308
6 changed files with 16 additions and 14 deletions

View File

@@ -1,3 +1,4 @@
use std::error;
use std::io::{self, Write};
use std::process;
use std::sync::{Arc, Mutex};
@@ -42,7 +43,7 @@ mod subject;
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
type Result<T> = ::std::result::Result<T, Box<::std::error::Error>>;
type Result<T> = ::std::result::Result<T, Box<dyn error::Error>>;
fn main() {
if let Err(err) = Args::parse().and_then(try_main) {