Эх сурвалжийг харах

new clippy lints for rust 1.63 (#2207)

Henry-E 3 жил өмнө
parent
commit
862575a649

+ 1 - 1
cli/src/config.rs

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

+ 3 - 3
cli/src/lib.rs

@@ -1353,7 +1353,7 @@ fn cd_member(cfg_override: &ConfigOverride, program_name: &str) -> Result<()> {
             return Ok(());
             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> {
 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 })
     Ok(BinVerification { state, is_verified })
 }
 }
 
 
-#[derive(PartialEq)]
+#[derive(PartialEq, Eq)]
 pub struct BinVerification {
 pub struct BinVerification {
     pub state: BinVerificationState,
     pub state: BinVerificationState,
     pub is_verified: bool,
     pub is_verified: bool,
 }
 }
 
 
-#[derive(PartialEq)]
+#[derive(PartialEq, Eq)]
 pub enum BinVerificationState {
 pub enum BinVerificationState {
     Buffer,
     Buffer,
     ProgramData {
     ProgramData {