aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authorYigit Sever2022-04-23 21:31:30 +0300
committerYigit Sever2022-04-23 21:32:51 +0300
commit9b6c529de0136fc6648c02031e0e4b7c4dd14387 (patch)
tree76fa3532f20dd94d9b323f561331d03ec6fdd709 /src/handlers.rs
parent1dfcd85f846f8ed3e193d25b0f302505ccef185d (diff)
downloadgradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.tar.gz
gradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.tar.bz2
gradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.zip
Add temporary clippy allows
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs3
1 files changed, 3 insertions, 0 deletions
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! {
93/// - We then verify the payload and calculate the User fingerprint 93/// - We then verify the payload and calculate the User fingerprint
94/// - Finally, create the new [`User`] object, insert to users `HashMap` `<fingerprint, User>` 94/// - Finally, create the new [`User`] object, insert to users `HashMap` `<fingerprint, User>`
95/// 95///
96#[allow(clippy::too_many_lines)] // temporary, should be refactored
96pub async fn authenticate_user( 97pub async fn authenticate_user(
97 request: InitialAuthRequest, 98 request: InitialAuthRequest,
98 db: Db, 99 db: Db,
@@ -383,6 +384,7 @@ pub async fn list_transactions(db: Db) -> Result<impl warp::Reply, Infallible> {
383/// This is the analogue of `coinbase` in Bitcoin works 384/// This is the analogue of `coinbase` in Bitcoin works
384/// 385///
385/// The `coinbase` transaction also gets something for their efforts. 386/// The `coinbase` transaction also gets something for their efforts.
387#[allow(clippy::too_many_lines)] // temporary, should be refactored
386pub async fn propose_block( 388pub async fn propose_block(
387 new_block: Block, 389 new_block: Block,
388 token: String, 390 token: String,
@@ -658,6 +660,7 @@ pub async fn propose_block(
658/// * `token` - An Authorization header value such as `Bearer aaa.bbb.ccc` 660/// * `token` - An Authorization header value such as `Bearer aaa.bbb.ccc`
659/// * `db` - Global [`Db`] instance 661/// * `db` - Global [`Db`] instance
660/// 662///
663#[allow(clippy::too_many_lines)] // temporary, should be refactored
661pub async fn propose_transaction( 664pub async fn propose_transaction(
662 new_transaction: Transaction, 665 new_transaction: Transaction,
663 token: String, 666 token: String,