Skip to content

Commit

Permalink
Fix clippy (#2356)
Browse files Browse the repository at this point in the history
* fix clippy

* temporary ignore RUSTSEC-2022-0093
  • Loading branch information
svyatonik authored Aug 16, 2023
1 parent c3ed1df commit 0eff278
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ notice = "warn"
ignore = [
# time (origin: Substrate RPC + benchmarking crates)
"RUSTSEC-2020-0071",
# we are only using it in tests (TODO: https://github.com/paritytech/parity-bridges-common/issues/2355)
"RUSTSEC-2022-0093",
]
# Threshold for security vulnerabilities, any vulnerability with a CVSS score
# lower than the range specified will be ignored. Note that ignored advisories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ where
let common = self.mut_base().mut_common();
substrate_relay_helper::messages::metrics::add_relay_balances_metrics::<_, Self::Right>(
common.left.client.clone(),
&mut common.metrics_params,
&common.metrics_params,
&common.left.accounts,
&lanes,
)
.await?;
substrate_relay_helper::messages::metrics::add_relay_balances_metrics::<_, Self::Left>(
common.right.client.clone(),
&mut common.metrics_params,
&common.metrics_params,
&common.right.accounts,
&lanes,
)
Expand Down
2 changes: 1 addition & 1 deletion relays/lib-substrate-relay/src/messages/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use std::{convert::TryFrom, fmt::Debug, marker::PhantomData};
/// Add relay accounts balance metrics.
pub async fn add_relay_balances_metrics<C: ChainWithBalances, BC: ChainWithMessages>(
client: impl Client<C>,
metrics: &mut MetricsParams,
metrics: &MetricsParams,
relay_accounts: &Vec<TaggedAccount<AccountIdOf<C>>>,
lanes: &[LaneId],
) -> anyhow::Result<()>
Expand Down

0 comments on commit 0eff278

Please sign in to comment.