Skip to content

Commit 5387f4c

Browse files
oslfmtsmoelius
authored andcommitted
fix requested PR changes
1 parent aa4ec74 commit 5387f4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lints/type_cosplay/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use if_chain::if_chain;
2020

2121
dylint_linting::impl_late_lint! {
2222
/// **What it does:**
23-
///
23+
///
2424
/// **Why is this bad?**
2525
///
2626
/// **Known problems:** When only one enum is serialized, may miss certain edge cases.

lints/type_cosplay/ui/insecure-3/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub mod type_cosplay_secure {
2525
}
2626
msg!("GM {}", user.authority);
2727

28-
let extra = AnotherDiscriminant::try_from_slice(&ctx.accounts.user.data.borrow()).unwrap();
28+
let extra = Instruction::try_from_slice(&ctx.accounts.user.data.borrow()).unwrap();
2929
Ok(())
3030
}
3131
}
@@ -60,7 +60,7 @@ pub enum AccountDiscriminant {
6060
}
6161

6262
#[derive(BorshSerialize, BorshDeserialize)]
63-
pub enum AnotherDiscriminant {
63+
pub enum Instruction {
6464
Extra(Extra),
6565
Metadata,
6666
}

lints/type_cosplay/ui/secure-2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ cpi = ["no-entrypoint"]
1616
default = []
1717

1818
[dependencies]
19-
anchor-lang = "0.20.1"
19+
anchor-lang = "0.20.1"

0 commit comments

Comments
 (0)