From 06f48ecbbc387a2dbdf631fda00b1c711ff7acfb Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 9 Nov 2023 18:02:29 -0800 Subject: [PATCH] lint (which captures fdlimit error) --- migration/src/m20230205_130035_create_balance.rs | 1 + migration/src/m20230205_133755_create_referrals.rs | 1 + migration/src/m20230607_221917_total_deposits.rs | 1 + .../src/m20230708_152131_referral_track_one_time_bonus_bonus.rs | 2 +- web3_proxy_cli/examples/subscribe_blocks.rs | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/migration/src/m20230205_130035_create_balance.rs b/migration/src/m20230205_130035_create_balance.rs index 0036b151..0980d460 100644 --- a/migration/src/m20230205_130035_create_balance.rs +++ b/migration/src/m20230205_130035_create_balance.rs @@ -60,6 +60,7 @@ enum User { Id, } +#[allow(clippy::enum_variant_names)] #[derive(Iden)] enum Balance { Table, diff --git a/migration/src/m20230205_133755_create_referrals.rs b/migration/src/m20230205_133755_create_referrals.rs index c7a5d52c..578491f6 100644 --- a/migration/src/m20230205_133755_create_referrals.rs +++ b/migration/src/m20230205_133755_create_referrals.rs @@ -115,6 +115,7 @@ enum Referrer { ReferralCode, } +#[allow(clippy::enum_variant_names)] #[derive(Iden)] enum Referee { Table, diff --git a/migration/src/m20230607_221917_total_deposits.rs b/migration/src/m20230607_221917_total_deposits.rs index 382f78d3..c650639c 100644 --- a/migration/src/m20230607_221917_total_deposits.rs +++ b/migration/src/m20230607_221917_total_deposits.rs @@ -56,6 +56,7 @@ impl MigrationTrait for Migration { } } +#[allow(clippy::enum_variant_names)] #[derive(Iden)] enum Balance { Table, diff --git a/migration/src/m20230708_152131_referral_track_one_time_bonus_bonus.rs b/migration/src/m20230708_152131_referral_track_one_time_bonus_bonus.rs index 7123e118..465a2e3f 100644 --- a/migration/src/m20230708_152131_referral_track_one_time_bonus_bonus.rs +++ b/migration/src/m20230708_152131_referral_track_one_time_bonus_bonus.rs @@ -39,7 +39,7 @@ impl MigrationTrait for Migration { } } -/// Learn more at https://docs.rs/sea-query#iden +#[allow(clippy::enum_variant_names)] #[derive(Iden)] enum Referee { Table, diff --git a/web3_proxy_cli/examples/subscribe_blocks.rs b/web3_proxy_cli/examples/subscribe_blocks.rs index 27bee5aa..1ad9b7a3 100644 --- a/web3_proxy_cli/examples/subscribe_blocks.rs +++ b/web3_proxy_cli/examples/subscribe_blocks.rs @@ -8,7 +8,7 @@ use web3_proxy::prelude::tokio; #[tokio::main] async fn main() -> anyhow::Result<()> { // install global collector configured based on RUST_LOG env var. - fdlimit::raise_fd_limit(); + fdlimit::raise_fd_limit()?; // erigon let url = "ws://10.11.12.16:8548";