Fix redundant_closure

rust
Elnu 1 year ago
parent 24b87d9b78
commit 981a78f36e

@ -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)),
}
})

Loading…
Cancel
Save