Skip to content

Commit

Permalink
fix new clippy lints (coral-xyz#2148)
Browse files Browse the repository at this point in the history
  • Loading branch information
stegaBOB authored and henrye committed Dec 6, 2022
1 parent f0e0ad8 commit 280ab02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ pub struct RequestBuilder<'a> {
namespace: RequestNamespace,
}

#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum RequestNamespace {
Global,
State {
Expand Down
20 changes: 10 additions & 10 deletions lang/syn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -518,7 +518,7 @@ pub enum Ty {
ProgramData,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum SysvarTy {
Clock,
Rent,
Expand All @@ -532,49 +532,49 @@ 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,
// True if the account has been boxed via `Box<T>`.
pub boxed: bool,
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct ProgramTy {
// The struct type of the account.
pub account_type_path: TypePath,
Expand Down

0 comments on commit 280ab02

Please sign in to comment.