Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: new clippy lints #2148

Merged
merged 2 commits into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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