Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
b-yap committed Oct 12, 2023
1 parent b443b87 commit 611cc5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clients/vault/src/system.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::too_many_arguments)]
use std::{
collections::HashMap, convert::TryInto, fs, future::Future, pin::Pin, str::from_utf8,
sync::Arc, time::Duration,
Expand Down Expand Up @@ -343,11 +344,12 @@ where
ServiceTask::Essential(Box::pin(task.map_err(|x| x.into())))
}

type RegistrationData = Vec<(CurrencyId, CurrencyId, Option<u128>)>;
// dedicated for running the service
impl VaultService {
fn auto_register(
&self,
) -> Result<Vec<(CurrencyId, CurrencyId, Option<u128>)>, ServiceError<Error>> {
) -> Result<RegistrationData, ServiceError<Error>> {
let mut amount_is_none: bool = false;
let parsed_auto_register = self
.config
Expand Down Expand Up @@ -447,7 +449,7 @@ impl VaultService {
run(issue::listen_for_issue_requests(
self.spacewalk_parachain.clone(),
vault_public_key,
issue_event_tx.clone(),
issue_event_tx,
issue_map.clone(),
memos_to_issue_ids.clone(),
)),
Expand Down

0 comments on commit 611cc5f

Please sign in to comment.