diff options
author | Yigit Sever | 2022-04-23 21:31:30 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-23 21:32:51 +0300 |
commit | 9b6c529de0136fc6648c02031e0e4b7c4dd14387 (patch) | |
tree | 76fa3532f20dd94d9b323f561331d03ec6fdd709 /src | |
parent | 1dfcd85f846f8ed3e193d25b0f302505ccef185d (diff) | |
download | gradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.tar.gz gradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.tar.bz2 gradecoin-9b6c529de0136fc6648c02031e0e4b7c4dd14387.zip |
Add temporary clippy allows
Diffstat (limited to 'src')
-rw-r--r-- | src/block.rs | 1 | ||||
-rw-r--r-- | src/handlers.rs | 3 |
2 files changed, 4 insertions, 0 deletions
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 { | |||
44 | 44 | ||
45 | /// For prototyping and letting serde handle everything json | 45 | /// For prototyping and letting serde handle everything json |
46 | #[derive(Serialize, Deserialize, Debug, PartialEq)] | 46 | #[derive(Serialize, Deserialize, Debug, PartialEq)] |
47 | #[allow(clippy::module_name_repetitions)] | ||
47 | pub struct NakedBlock { | 48 | pub struct NakedBlock { |
48 | #[serde(skip_serializing_if = "Vec::is_empty", default)] | 49 | #[serde(skip_serializing_if = "Vec::is_empty", default)] |
49 | pub transaction_list: Vec<Fingerprint>, | 50 | pub transaction_list: Vec<Fingerprint>, |
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 | ||
96 | pub async fn authenticate_user( | 97 | pub 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 | ||
386 | pub async fn propose_block( | 388 | pub 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 | ||
661 | pub async fn propose_transaction( | 664 | pub async fn propose_transaction( |
662 | new_transaction: Transaction, | 665 | new_transaction: Transaction, |
663 | token: String, | 666 | token: String, |