From 9b6c529de0136fc6648c02031e0e4b7c4dd14387 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 23 Apr 2022 21:31:30 +0300 Subject: Add temporary clippy allows --- src/block.rs | 1 + src/handlers.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/block.rs b/src/block.rs index 1a61d72..d7a3f8a 100644 --- a/src/block.rs +++ b/src/block.rs @@ -44,6 +44,7 @@ impl Default for Block { /// For prototyping and letting serde handle everything json #[derive(Serialize, Deserialize, Debug, PartialEq)] +#[allow(clippy::module_name_repetitions)] pub struct NakedBlock { #[serde(skip_serializing_if = "Vec::is_empty", default)] pub transaction_list: Vec, diff --git a/src/handlers.rs b/src/handlers.rs index 9e1bae1..6e30ae3 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -93,6 +93,7 @@ lazy_static! { /// - We then verify the payload and calculate the User fingerprint /// - Finally, create the new [`User`] object, insert to users `HashMap` `` /// +#[allow(clippy::too_many_lines)] // temporary, should be refactored pub async fn authenticate_user( request: InitialAuthRequest, db: Db, @@ -383,6 +384,7 @@ pub async fn list_transactions(db: Db) -> Result { /// This is the analogue of `coinbase` in Bitcoin works /// /// The `coinbase` transaction also gets something for their efforts. +#[allow(clippy::too_many_lines)] // temporary, should be refactored pub async fn propose_block( new_block: Block, token: String, @@ -658,6 +660,7 @@ pub async fn propose_block( /// * `token` - An Authorization header value such as `Bearer aaa.bbb.ccc` /// * `db` - Global [`Db`] instance /// +#[allow(clippy::too_many_lines)] // temporary, should be refactored pub async fn propose_transaction( new_transaction: Transaction, token: String, -- cgit v1.2.3-70-g09d2