new clippy lints for rust 1.63 (#2207)

This commit is contained in:
Henry-E 2022-10-06 19:26:22 +01:00 committed by GitHub
parent 3970847e75
commit 862575a649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -323,7 +323,7 @@ pub struct WorkspaceConfig {
pub types: String,
}
#[derive(ArgEnum, Parser, Clone, PartialEq, Debug)]
#[derive(ArgEnum, Parser, Clone, PartialEq, Eq, Debug)]
pub enum BootstrapMode {
None,
Debian,

View File

@ -1353,7 +1353,7 @@ fn cd_member(cfg_override: &ConfigOverride, program_name: &str) -> Result<()> {
return Ok(());
}
}
return Err(anyhow!("{} is not part of the workspace", program_name,));
Err(anyhow!("{} is not part of the workspace", program_name,))
}
pub fn verify_bin(program_id: Pubkey, bin_path: &Path, cluster: &str) -> Result<BinVerification> {
@ -1440,13 +1440,13 @@ pub fn verify_bin(program_id: Pubkey, bin_path: &Path, cluster: &str) -> Result<
Ok(BinVerification { state, is_verified })
}
#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub struct BinVerification {
pub state: BinVerificationState,
pub is_verified: bool,
}
#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum BinVerificationState {
Buffer,
ProgramData {