Skip to content

Commit 4d82b7c

Browse files
Yash BhartiYash Bharti
authored andcommitted
Fixed Clippy Warnings
1 parent b33a482 commit 4d82b7c

File tree

8 files changed

+14
-17
lines changed

8 files changed

+14
-17
lines changed

common/src/graphql.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use std::collections::HashSet;
55

66
use regex::Regex;
77

8+
#[allow(clippy::too_long_first_doc_paragraph)]
89
/// There is no convenient function for filtering GraphQL executable documents
910
/// For sake of simplicity, use regex to filter graphql query string
10-
/// Return original string if the query is okay, otherwise error out with
11-
/// unsupported fields
11+
/// Return original string if the query is okay, otherwise error out with unsupported fields
1212
pub fn filter_supported_fields(
1313
query: &str,
1414
supported_root_fields: &HashSet<&str>,

common/src/indexer_service/http/indexer_service.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use std::{
5-
collections::HashMap, error::Error, fmt::Debug, net::SocketAddr, path::PathBuf, sync::Arc,
6-
time::Duration,
7-
};
84
use alloy::dyn_abi::Eip712Domain;
95
use anyhow;
106
use axum::extract::MatchedPath;
@@ -23,6 +19,10 @@ use prometheus::TextEncoder;
2319
use reqwest::StatusCode;
2420
use serde::{de::DeserializeOwned, Serialize};
2521
use sqlx::postgres::PgPoolOptions;
22+
use std::{
23+
collections::HashMap, error::Error, fmt::Debug, net::SocketAddr, path::PathBuf, sync::Arc,
24+
time::Duration,
25+
};
2626
use tap_core::{manager::Manager, receipt::checks::CheckList, tap_eip712_domain};
2727
use thegraph_core::{Address, Attestation, DeploymentId};
2828
use thiserror::Error;

common/src/tap/checks/receipt_max_val_check.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ pub struct ReceiptMaxValueCheck {
66
receipt_max_value: u128,
77
}
88

9+
#[allow(unused_imports)]
910
use tap_core::{
1011
receipt::{
11-
checks::{Check, CheckError, CheckList, CheckResult},
12+
checks::{Check, CheckError, CheckResult},
1213
state::Checking,
1314
ReceiptWithState,
1415
},
@@ -41,8 +42,6 @@ mod tests {
4142
use std::str::FromStr;
4243
use std::time::Duration;
4344
use std::time::SystemTime;
44-
45-
use alloy::dyn_abi::Eip712Domain;
4645
use alloy::primitives::Address;
4746
use alloy::signers::local::coins_bip39::English;
4847
use alloy::signers::local::MnemonicBuilder;

common/src/tap/checks/timestamp_check.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ pub struct TimestampCheck {
77
timestamp_error_tolerance: Duration,
88
}
99

10+
#[allow(unused_imports)]
1011
use tap_core::{
11-
manager::Manager,
1212
receipt::{
13-
checks::{Check, CheckError, CheckList, CheckResult},
13+
checks::{Check, CheckError, CheckResult},
1414
state::Checking,
1515
ReceiptWithState,
1616
},
@@ -51,9 +51,8 @@ mod tests {
5151
use std::str::FromStr;
5252

5353
use alloy::{
54-
dyn_abi::Eip712Domain,
5554
primitives::Address,
56-
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner}
55+
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
5756
};
5857

5958
use super::*;

common/src/test_vectors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{collections::HashMap, str::FromStr};
66
use alloy::{
77
dyn_abi::Eip712Domain,
88
primitives::U256,
9-
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner}
9+
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
1010
};
1111
use lazy_static::lazy_static;
1212
use tap_core::{

tap-agent/src/agent/sender_allocation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ impl SenderAllocationState {
480480

481481
/// Request a RAV from the sender's TAP aggregator. Only one RAV request will be running at a
482482
/// time through the use of an internal guard.
483-
484483
async fn rav_requester_single(&mut self) -> Result<SignedRAV, RavError> {
485484
tracing::trace!("rav_requester_single()");
486485
let RAVRequest {

tap-agent/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use alloy::{dyn_abi::Eip712Domain};
4+
use alloy::dyn_abi::Eip712Domain;
55
use lazy_static::lazy_static;
66
use tap_core::tap_eip712_domain;
77

tap-agent/src/tap/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::str::FromStr;
55

66
use alloy::{
77
primitives::hex::ToHexExt,
8-
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner}
8+
signers::local::{coins_bip39::English, MnemonicBuilder, PrivateKeySigner},
99
};
1010
use bigdecimal::num_bigint::BigInt;
1111

0 commit comments

Comments
 (0)