diff --git a/Cargo.toml b/Cargo.toml index 89c6533..7ce452c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,8 @@ all = { level = "warn", priority = -1 } pedantic = { level = "warn", priority = 0 } # unwrap_used = { level = "warn", priority = 1 } -# allow_attributes_without_reason = { level = "warn", priority = 4 } # nightly +allow_attributes = { level = "warn", priority = 4 } +allow_attributes_without_reason = { level = "warn", priority = 4 } as_underscore = { level = "warn", priority = 4 } panic_in_result_fn = { level = "warn", priority = 4 } diff --git a/src/client/pluggy/account.rs b/src/client/pluggy/account.rs index 08fad09..410a9f7 100644 --- a/src/client/pluggy/account.rs +++ b/src/client/pluggy/account.rs @@ -20,8 +20,7 @@ pub struct ListAccountsResponse { pub struct Account { id: Uuid, #[serde(rename = "type")] - #[allow(clippy::struct_field_names)] - account_type: AccountType, + acc_type: AccountType, subtype: AccountSubType, /// External identifier of the account: agencia/conta number: String, diff --git a/src/client/pluggy/transactions.rs b/src/client/pluggy/transactions.rs index 53323a0..d9a1929 100644 --- a/src/client/pluggy/transactions.rs +++ b/src/client/pluggy/transactions.rs @@ -35,8 +35,7 @@ pub struct Transaction { /// Can be used to identify the category in the Categories endpoint category_id: Option, #[serde(rename = "type")] - #[allow(clippy::struct_field_names)] - transaction_type: TransactionType, + tx_type: TransactionType, /// Balance after the transaction balance: f32, /// Institution provided code diff --git a/src/hypermedia/service/auth.rs b/src/hypermedia/service/auth.rs index 0de88f5..da05a7c 100644 --- a/src/hypermedia/service/auth.rs +++ b/src/hypermedia/service/auth.rs @@ -218,7 +218,7 @@ pub fn signup_tab(secrets: &Secrets) -> impl IntoResponse { .into_response_with_nonce(); } -#[allow(clippy::too_many_lines)] +#[expect(clippy::too_many_lines, reason = "not yet reviewed this function")] pub async fn signup( db_pool: &Pool, secrets: &Secrets, diff --git a/src/main.rs b/src/main.rs index 5444a26..fac45a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,7 +118,10 @@ struct AppState { } #[shuttle_runtime::main] -#[allow(clippy::too_many_lines)] +#[expect( + clippy::too_many_lines, + reason = "I have to think on how to shrink it, idk" +)] /// The main function of the application. async fn axum( #[shuttle_runtime::Secrets] secret_store: SecretStore,