From 981a78f36e1347c5625641218e1b5c90d442b7ef Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 30 Jun 2023 16:05:50 -0700 Subject: [PATCH] Fix redundant_closure --- 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 d8774c6..71623e2 100644 --- a/src/models/database.rs +++ b/src/models/database.rs @@ -199,7 +199,7 @@ impl Database { discriminator: row.get(1)?, avatar: row.get(2)?, })) - }).map_err(|error| DatabaseError::Rusqlite(error)), + }).map_err(DatabaseError::Rusqlite), Err(error) => Err(DatabaseError::Rusqlite(error)), } })