Skip to content

Commit 7bf26cd

Browse files
leoyvensevaporei
authored andcommitted
store: Ignore Rust 1.58 warning
1 parent 4f30205 commit 7bf26cd

File tree

11 files changed

+45
-27
lines changed

11 files changed

+45
-27
lines changed

chain/ethereum/src/trigger.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ impl std::fmt::Debug for MappingTrigger {
5656
#[derive(Debug)]
5757
enum MappingTriggerWithoutBlock {
5858
Log {
59-
transaction: Arc<Transaction>,
60-
log: Arc<Log>,
61-
params: Vec<LogParam>,
59+
_transaction: Arc<Transaction>,
60+
_log: Arc<Log>,
61+
_params: Vec<LogParam>,
6262
},
6363
Call {
64-
transaction: Arc<Transaction>,
65-
call: Arc<EthereumCall>,
66-
inputs: Vec<LogParam>,
67-
outputs: Vec<LogParam>,
64+
_transaction: Arc<Transaction>,
65+
_call: Arc<EthereumCall>,
66+
_inputs: Vec<LogParam>,
67+
_outputs: Vec<LogParam>,
6868
},
6969
Block,
7070
}
@@ -76,9 +76,9 @@ impl std::fmt::Debug for MappingTrigger {
7676
log,
7777
params,
7878
} => MappingTriggerWithoutBlock::Log {
79-
transaction: transaction.cheap_clone(),
80-
log: log.cheap_clone(),
81-
params: params.clone(),
79+
_transaction: transaction.cheap_clone(),
80+
_log: log.cheap_clone(),
81+
_params: params.clone(),
8282
},
8383
MappingTrigger::Call {
8484
block: _,
@@ -87,10 +87,10 @@ impl std::fmt::Debug for MappingTrigger {
8787
inputs,
8888
outputs,
8989
} => MappingTriggerWithoutBlock::Call {
90-
transaction: transaction.cheap_clone(),
91-
call: call.cheap_clone(),
92-
inputs: inputs.clone(),
93-
outputs: outputs.clone(),
90+
_transaction: transaction.cheap_clone(),
91+
_call: call.cheap_clone(),
92+
_inputs: inputs.clone(),
93+
_outputs: outputs.clone(),
9494
},
9595
MappingTrigger::Block { block: _ } => MappingTriggerWithoutBlock::Block,
9696
};

graph/src/firehose/endpoints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct FirehoseEndpoint {
1818
pub uri: String,
1919
pub token: Option<String>,
2020
channel: Channel,
21-
logger: Logger,
21+
_logger: Logger,
2222
}
2323

2424
impl Display for FirehoseEndpoint {
@@ -61,7 +61,7 @@ impl FirehoseEndpoint {
6161
uri,
6262
channel,
6363
token,
64-
logger,
64+
_logger: logger,
6565
})
6666
}
6767

graphql/src/introspection/resolver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ fn input_value(
297297

298298
#[derive(Clone)]
299299
pub struct IntrospectionResolver {
300-
logger: Logger,
300+
_logger: Logger,
301301
type_objects: TypeObjectsMap,
302302
directives: r::Value,
303303
}
@@ -313,7 +313,7 @@ impl IntrospectionResolver {
313313
let directives = schema_directive_objects(schema, &mut type_objects);
314314

315315
IntrospectionResolver {
316-
logger,
316+
_logger: logger,
317317
type_objects,
318318
directives,
319319
}

node/src/manager/commands/copy.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type UtcDateTime = DateTime<Utc>;
2525
struct CopyState {
2626
src: i32,
2727
dst: i32,
28+
#[allow(dead_code)]
2829
target_block_hash: Vec<u8>,
2930
target_block_number: i32,
3031
started_at: UtcDateTime,
@@ -35,12 +36,15 @@ struct CopyState {
3536
#[derive(Queryable, QueryableByName, Debug)]
3637
#[table_name = "copy_table_state"]
3738
struct CopyTableState {
39+
#[allow(dead_code)]
3840
id: i32,
3941
entity_type: String,
42+
#[allow(dead_code)]
4043
dst: i32,
4144
next_vid: i64,
4245
target_vid: i64,
4346
batch_size: i64,
47+
#[allow(dead_code)]
4448
started_at: UtcDateTime,
4549
finished_at: Option<UtcDateTime>,
4650
duration_ms: i64,

server/websocket/src/connection.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,18 @@ struct StartPayload {
3535
#[derive(Debug, Deserialize)]
3636
#[serde(tag = "type", rename_all = "snake_case")]
3737
enum IncomingMessage {
38-
ConnectionInit { payload: Option<serde_json::Value> },
38+
ConnectionInit {
39+
#[allow(dead_code)]
40+
payload: Option<serde_json::Value>,
41+
},
3942
ConnectionTerminate,
40-
Start { id: String, payload: StartPayload },
41-
Stop { id: String },
43+
Start {
44+
id: String,
45+
payload: StartPayload,
46+
},
47+
Stop {
48+
id: String,
49+
},
4250
}
4351

4452
impl IncomingMessage {

store/postgres/src/catalog.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub fn supports_proof_of_indexing(
117117
#[derive(Debug, QueryableByName)]
118118
struct Table {
119119
#[sql_type = "Text"]
120+
#[allow(dead_code)]
120121
pub table_name: String,
121122
}
122123
let query =

store/postgres/src/detail.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// For git_testament_macros
2+
#![allow(unused_macros)]
3+
14
//! Queries to support the index node API
25
use crate::primary::Site;
36
use crate::{

store/postgres/src/primary.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ allow_tables_to_appear_in_same_query!(
193193
#[table_name = "deployment_schemas"]
194194
struct Schema {
195195
id: DeploymentId,
196+
#[allow(dead_code)]
196197
pub created_at: PgTimestamp,
197198
pub subgraph: String,
198199
pub name: String,

store/postgres/src/relational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ impl Layout {
546546
tables.push(self.table_for_entity(entity_type)?.as_ref());
547547
}
548548
let query = FindManyQuery {
549-
namespace: &self.catalog.site.namespace,
549+
_namespace: &self.catalog.site.namespace,
550550
ids_for_type,
551551
tables,
552552
block,

store/postgres/src/relational_queries.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ impl<'a, Conn> RunQueryDsl<Conn> for FindQuery<'a> {}
11951195

11961196
#[derive(Debug, Clone, Constructor)]
11971197
pub struct FindManyQuery<'a> {
1198-
pub(crate) namespace: &'a Namespace,
1198+
pub(crate) _namespace: &'a Namespace,
11991199
pub(crate) tables: Vec<&'a Table>,
12001200

12011201
// Maps object name to ids.
@@ -1392,7 +1392,7 @@ impl<'a, Conn> RunQueryDsl<Conn> for InsertQuery<'a> {}
13921392

13931393
#[derive(Debug, Clone)]
13941394
pub struct ConflictingEntityQuery<'a> {
1395-
layout: &'a Layout,
1395+
_layout: &'a Layout,
13961396
tables: Vec<&'a Table>,
13971397
entity_id: &'a str,
13981398
}
@@ -1407,7 +1407,7 @@ impl<'a> ConflictingEntityQuery<'a> {
14071407
.map(|entity| layout.table_for_entity(entity).map(|table| table.as_ref()))
14081408
.collect::<Result<Vec<_>, _>>()?;
14091409
Ok(ConflictingEntityQuery {
1410-
layout,
1410+
_layout: layout,
14111411
tables,
14121412
entity_id,
14131413
})
@@ -2574,6 +2574,7 @@ impl<'a, Conn> RunQueryDsl<Conn> for FilterQuery<'a> {}
25742574
#[derive(Debug, Clone, Constructor)]
25752575
pub struct ClampRangeQuery<'a, S> {
25762576
table: &'a Table,
2577+
#[allow(dead_code)]
25772578
entity_type: &'a EntityType,
25782579
entity_ids: &'a [S],
25792580
block: BlockNumber,

0 commit comments

Comments
 (0)