Skip to content

Commit ddeda7c

Browse files
authored
Merge pull request #2267 from rbtcollins/clippy
Master lint
2 parents 69a9052 + 5b57399 commit ddeda7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl Cfg {
234234
dist_root: &self.dist_root_url,
235235
temp_cfg: &self.temp_cfg,
236236
download_dir: &self.download_dir,
237-
notify_handler: notify_handler,
237+
notify_handler,
238238
pgp_keys: self.get_pgp_keys(),
239239
}
240240
}

src/fallback_settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl FallbackSettings {
2929
let io_err = e.source().unwrap().downcast_ref::<io::Error>().unwrap();
3030
match io_err.kind() {
3131
io::ErrorKind::NotFound | io::ErrorKind::PermissionDenied => Ok(None),
32-
_ => Err(e.into()),
32+
_ => Err(e),
3333
}
3434
}
3535
Err(e) => Err(e),

0 commit comments

Comments
 (0)