Browse Source

fix new clippy lints (#2148)

Sammy Harris 3 years ago
parent
commit
c1c4f6c335
2 changed files with 11 additions and 11 deletions
  1. 1 1
      client/src/lib.rs
  2. 10 10
      lang/syn/src/lib.rs

+ 1 - 1
client/src/lib.rs

@@ -408,7 +408,7 @@ pub struct RequestBuilder<'a> {
     namespace: RequestNamespace,
 }
 
-#[derive(PartialEq)]
+#[derive(PartialEq, Eq)]
 pub enum RequestNamespace {
     Global,
     State {

+ 10 - 10
lang/syn/src/lib.rs

@@ -500,7 +500,7 @@ pub struct CompositeField {
 }
 
 // A type of an account field.
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub enum Ty {
     AccountInfo,
     UncheckedAccount,
@@ -518,7 +518,7 @@ pub enum Ty {
     ProgramData,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub enum SysvarTy {
     Clock,
     Rent,
@@ -532,41 +532,41 @@ pub enum SysvarTy {
     Rewards,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct ProgramStateTy {
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct CpiStateTy {
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct ProgramAccountTy {
     // The struct type of the account.
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct CpiAccountTy {
     // The struct type of the account.
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct AccountLoaderTy {
     // The struct type of the account.
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct LoaderTy {
     // The struct type of the account.
     pub account_type_path: TypePath,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct AccountTy {
     // The struct type of the account.
     pub account_type_path: TypePath,
@@ -574,7 +574,7 @@ pub struct AccountTy {
     pub boxed: bool,
 }
 
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Eq)]
 pub struct ProgramTy {
     // The struct type of the account.
     pub account_type_path: TypePath,