More clippy fixes

This commit is contained in:
2023-11-19 14:45:46 +03:00
parent 6ae745fcd4
commit bfd68194e6
17 changed files with 79 additions and 51 deletions

View File

@ -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"

View File

@ -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()))

View File

@ -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;