Fix tons of warnings in newest nightly (#2784)

* Fix tons of warnings in newest nightly

* Fix sr-api-macro doc tests
This commit is contained in:
Bastian Köcher
2019-06-04 20:09:49 +02:00
committed by GitHub
parent 9700029203
commit 6142f95611
73 changed files with 359 additions and 316 deletions
+2 -2
View File
@@ -617,7 +617,7 @@ where
let to = cli.to;
let json = cli.json;
let file: Box<Write> = match cli.output {
let file: Box<dyn Write> = match cli.output {
Some(filename) => Box::new(File::create(filename)?),
None => Box::new(stdout()),
};
@@ -640,7 +640,7 @@ where
{
let config = create_config_with_db_path::<F, _>(spec_factory, &cli.shared_params, version)?;
let file: Box<Read> = match cli.input {
let file: Box<dyn Read> = match cli.input {
Some(filename) => Box::new(File::open(filename)?),
None => Box::new(stdin()),
};