Follow Clippy

This commit is contained in:
Kitaiti Makoto 2021-12-05 20:24:11 +09:00
parent de4380fd34
commit e01539ef16
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ fn main() {
e => e.map(|_| ()).unwrap(), e => e.map(|_| ()).unwrap(),
} }
let conn = Conn::establish(CONFIG.database_url.as_str()); 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() { match matches.subcommand() {
("instance", Some(args)) => { ("instance", Some(args)) => {

View File

@ -276,7 +276,7 @@ impl User {
)) ))
.execute(conn) .execute(conn)
.map(|_| ()) .map(|_| ())
.map_err(|err| Error::from(err)) .map_err(Error::from)
}) })
} }