Skip to content

Commit

Permalink
style: run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed May 24, 2022
1 parent 9fa9cc5 commit 3f6b428
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
20 changes: 9 additions & 11 deletions src/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ use crate::{parse::parse_keypair, snapshot::get_mint_accounts};
pub const OPEN_FILES_LIMIT: usize = 1024;

pub struct MigrateArgs {
pub client: RpcClient,
pub async_client: AsyncRpcClient,
pub keypair: Option<String>,
pub mint_address: String,
pub candy_machine_id: Option<String>,
pub mint_list: Option<String>,
pub cache_file: Option<String>,
pub retries: u8,
pub client: RpcClient,
pub async_client: AsyncRpcClient,
pub keypair: Option<String>,
pub mint_address: String,
pub candy_machine_id: Option<String>,
pub mint_list: Option<String>,
pub cache_file: Option<String>,
pub retries: u8,
}

#[derive(Debug, Deserialize, Serialize)]
Expand Down Expand Up @@ -299,9 +299,7 @@ pub fn revoke_delegate(
Ok(())
}

pub async fn migrate_collection(
args: MigrateArgs,
) -> AnyResult<()> {
pub async fn migrate_collection(args: MigrateArgs) -> AnyResult<()> {
if args.candy_machine_id.is_some() && args.mint_list.is_some() {
return Err(anyhow!(
"Please specify either a candy machine id or an mint_list file, but not both."
Expand Down
3 changes: 1 addition & 2 deletions src/process_subcommands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ pub async fn process_collections(
mint_list,
cache_file,
retries,
}
)
})
.await
}
}
Expand Down

0 comments on commit 3f6b428

Please sign in to comment.