From 2e704dc90d9440b29535cb85e85487a1c7fd4fa1 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 30 Jun 2023 15:51:48 -0700 Subject: [PATCH] cargo clippy --fix --- src/models/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/database.rs b/src/models/database.rs index 8b6a494..9ef1877 100644 --- a/src/models/database.rs +++ b/src/models/database.rs @@ -197,7 +197,7 @@ impl Database { name: row.get(0)?, discriminator: row.get(1)?, avatar: row.get(2)?, - }))).map_err(|error| DatabaseError::Rusqlite(error))), + }))).map_err(DatabaseError::Rusqlite)), Err(error) => Some(Err(DatabaseError::Rusqlite(error))), } })