From 4267d38a53bfa82ab5c8bcdfdc3eb8f3a4691e38 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 16 Jul 2020 21:35:10 -0700 Subject: clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index b46defc..50e7a4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -693,7 +693,7 @@ fn init() -> Result { // XXX will silently create a new default save if ron errors but path arg works. // revisit if/when stabilizing. ez file format upgrades let save = fs::read_to_string(&save_path) - .map_err(|e| anyhow::Error::new(e)) + .map_err(anyhow::Error::new) .and_then(|s| { let save: Save = ron::from_str(&s)?; Ok(save) -- cgit v1.2.3