From 280ab02c365a0868c901809fd4251119fe68cfd8 Mon Sep 17 00:00:00 2001 From: Sammy Harris <41593264+stegaBOB@users.noreply.github.com> Date: Tue, 23 Aug 2022 18:57:32 -0400 Subject: [PATCH] fix new clippy lints (#2148) --- client/src/lib.rs | 2 +- lang/syn/src/lib.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index 90fbf53412..c81560b31d 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -408,7 +408,7 @@ pub struct RequestBuilder<'a> { namespace: RequestNamespace, } -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] pub enum RequestNamespace { Global, State { diff --git a/lang/syn/src/lib.rs b/lang/syn/src/lib.rs index 5aeac91b4a..6de01e145a 100644 --- a/lang/syn/src/lib.rs +++ b/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,