Skip to content

Commit 3eb5929

Browse files
committed
clippy
1 parent f2a5a9f commit 3eb5929

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

src/main.rs

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@ use image_config::IMAGE_MAP;
3838
#[cfg(test)]
3939
mod test;
4040

41-
use crate::{
42-
api::send_job_to_remote,
43-
solana_program::{
44-
compose_transaction, find_build_params_pda, get_all_pdas_available, get_program_pda,
45-
process_close, resolve_rpc_url, upload_program_verification_data, InputParams,
46-
OtterBuildParams, OtterVerifyInstructions,
47-
},
41+
use crate::solana_program::{
42+
compose_transaction, find_build_params_pda, get_all_pdas_available, get_program_pda,
43+
process_close, resolve_rpc_url, upload_program_verification_data, InputParams,
44+
OtterBuildParams, OtterVerifyInstructions,
4845
};
4946

5047
const MAINNET_GENESIS_HASH: &str = "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d";
@@ -1283,18 +1280,11 @@ pub async fn verify_from_repo(
12831280
"Sending verify command to remote machine with uploader: {}",
12841281
&uploader
12851282
);
1286-
send_job_with_uploader_to_remote(&connection, &program_id, &uploader).await?;
1287-
// send_job_to_remote(
1288-
// &repo_url,
1289-
// &commit_hash,
1290-
// &program_id,
1291-
// &library_name_opt.clone(),
1292-
// bpf_flag,
1293-
// relative_mount_path.clone(),
1294-
// base_image.clone(),
1295-
// cargo_args.clone(),
1296-
// )
1297-
// .await?;
1283+
println!(
1284+
"\nPlease note that if the desired uploader is not the provided keypair, you will need to run `solana-verify remote submit-job --program-id {} --uploader <uploader-address>.\n",
1285+
&program_id,
1286+
);
1287+
send_job_with_uploader_to_remote(connection, &program_id, &uploader).await?;
12981288
}
12991289

13001290
Ok(())
@@ -1305,13 +1295,7 @@ pub async fn verify_from_repo(
13051295
Ok(())
13061296
}
13071297
}
1308-
Err(e) => {
1309-
eprintln!(
1310-
"\nPlease note that if the desired uploader is not the provided keypair, you will need to run `solana-verify remote submit-job --program-id {} --uploader <uploader-address>.\n",
1311-
&program_id,
1312-
);
1313-
Err(anyhow!("Error verifying program: {:?}", e))
1314-
}
1298+
Err(e) => Err(anyhow!("Error verifying program: {:?}", e)),
13151299
}
13161300
}
13171301

src/solana_program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub fn get_address_from_keypair_or_config(
212212
path_to_keypair: Option<&String>,
213213
) -> anyhow::Result<Pubkey> {
214214
if let Some(path_to_keypair) = path_to_keypair {
215-
Ok(get_keypair_from_path(&path_to_keypair)?.pubkey())
215+
Ok(get_keypair_from_path(path_to_keypair)?.pubkey())
216216
} else {
217217
Ok(get_user_config()?.0.pubkey())
218218
}

0 commit comments

Comments
 (0)