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/handlers.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/handlers.rs') 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