Skip to content

Commit f7888b1

Browse files
committed
all: remove unnecessary dead_code annotation in a few places
1 parent fccb168 commit f7888b1

6 files changed

Lines changed: 0 additions & 6 deletions

File tree

graph/src/data_source/subgraph.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ impl UnresolvedDataSource {
344344
Ok(())
345345
}
346346

347-
#[allow(dead_code)]
348347
pub(super) async fn resolve<C: Blockchain>(
349348
self,
350349
resolver: &Arc<dyn LinkResolver>,

graph/src/schema/input/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,6 @@ mod validations {
17021702

17031703
/// Helper struct for validations
17041704
struct Schema<'a> {
1705-
#[allow(dead_code)]
17061705
spec_version: &'a Version,
17071706
schema: &'a BaseSchema,
17081707
subgraph_schema_type: Option<&'a s::ObjectType>,

graphql/src/store/resolver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::query::ext::BlockConstraint;
2424
/// A resolver that fetches entities from a `Store`.
2525
#[derive(Clone, CheapClone)]
2626
pub struct StoreResolver {
27-
#[allow(dead_code)]
2827
logger: Logger,
2928
pub(crate) store: Arc<dyn QueryStore>,
3029
pub(crate) block_ptr: Option<BlockPtr>,

runtime/wasm/src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub enum DeterminismLevel {
99
Deterministic,
1010

1111
/// This error is known to be non-deterministic. For example, an intermittent http failure.
12-
#[allow(dead_code)]
1312
NonDeterministic,
1413

1514
/// The runtime is processing a given block, but there is an indication that the blockchain client

server/index-node/src/resolver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ pub struct IndexNodeResolver<S: Store> {
9898
logger: Logger,
9999
blockchain_map: Arc<BlockchainMap>,
100100
store: Arc<S>,
101-
#[allow(dead_code)]
102101
link_resolver: Arc<dyn LinkResolver>,
103102
bearer_token: Option<String>,
104103
}

store/postgres/src/chain_head_listener.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ impl Watcher {
4040
}
4141
}
4242

43-
#[allow(dead_code)]
4443
fn send(&self) {
4544
// Unwrap: `self` holds a receiver.
4645
self.sender.send(()).unwrap()

0 commit comments

Comments
 (0)