More clippy fixes
This commit is contained in:
@ -5,6 +5,9 @@ edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3"
|
||||
sea-orm = "0.12"
|
||||
|
@ -56,7 +56,7 @@ impl Entity {
|
||||
#[inline]
|
||||
pub async fn exists(
|
||||
user_id: u64,
|
||||
account_name: impl Into<String>,
|
||||
account_name: impl Into<String> + Send,
|
||||
db: &DatabaseConnection,
|
||||
) -> crate::Result<bool> {
|
||||
let count = Self::find_by_id((user_id, account_name.into()))
|
||||
@ -69,7 +69,7 @@ impl Entity {
|
||||
#[inline]
|
||||
pub async fn get(
|
||||
user_id: u64,
|
||||
account_name: impl Into<String>,
|
||||
account_name: impl Into<String> + Send,
|
||||
db: &DatabaseConnection,
|
||||
) -> crate::Result<Option<Model>> {
|
||||
Self::find_by_id((user_id, account_name.into()))
|
||||
|
@ -1,3 +1,6 @@
|
||||
// This is fine, because all errors can only be caused by the database errors and the docs would get repetative very quickly
|
||||
#![allow(clippy::missing_errors_doc)]
|
||||
|
||||
pub mod account;
|
||||
pub mod master_pass;
|
||||
pub mod prelude;
|
||||
|
Reference in New Issue
Block a user