Skip to content

Commit 6d64cd4

Browse files
committed
apply clippy suggestions
1 parent 675be3b commit 6d64cd4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/pool_commands/publish_datapoint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub enum PublishDatapointActionError {
4848
OracleContract(#[from] OracleContractError),
4949
}
5050

51+
#[allow(clippy::too_many_arguments)]
5152
pub fn build_subsequent_publish_datapoint_action(
5253
local_datapoint_box: &OracleBoxWrapper,
5354
node_api: &dyn NodeApiTrait,

core/src/pool_commands/refresh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn build_refresh_action(
133133
];
134134
let my_input_oracle_box_index: i32 = valid_in_oracle_boxes
135135
.iter()
136-
.position(|b| &b.public_key() == &my_oracle_pk)
136+
.position(|b| b.public_key() == my_oracle_pk)
137137
.ok_or(RefreshActionError::MyOracleBoxNoFound)?
138138
as i32;
139139

0 commit comments

Comments
 (0)