From e01539ef1628155241ec5325ba0c20e1684faec4 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 5 Dec 2021 20:24:11 +0900 Subject: [PATCH] Follow Clippy --- plume-cli/src/main.rs | 2 +- plume-models/src/users.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plume-cli/src/main.rs b/plume-cli/src/main.rs index 35248a32..3615c10d 100644 --- a/plume-cli/src/main.rs +++ b/plume-cli/src/main.rs @@ -25,7 +25,7 @@ fn main() { e => e.map(|_| ()).unwrap(), } let conn = Conn::establish(CONFIG.database_url.as_str()); - let _ = conn.as_ref().map(|conn| Instance::cache_local(conn)); + let _ = conn.as_ref().map(Instance::cache_local); match matches.subcommand() { ("instance", Some(args)) => { diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index 1b40015f..8c42701b 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -276,7 +276,7 @@ impl User { )) .execute(conn) .map(|_| ()) - .map_err(|err| Error::from(err)) + .map_err(Error::from) }) }