Skip to content

Commit

Permalink
fix lints (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jan 13, 2025
1 parent be73581 commit e2a9834
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ solana-stake-program = "=2.0.9"
solana-system-program = "=2.0.9"
solana-sdk = ">=2.0, <2.1"
thiserror = "1.0.64"

[workspace.lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(feature, values("custom-heap", "custom-panic"))',
'cfg(target_os, values("solana"))',
]
1 change: 0 additions & 1 deletion fuzz/fs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub trait SerializableFixture: Default + DeserializeOwned + Message + Serialize
/// Decode a `Protobuf` blob into a fixture.
fn decode(blob: &[u8]) -> Self {
<Self as Message>::decode(blob)
.map(Into::into)
.unwrap_or_else(|err| panic!("Failed to decode fixture: {}", err))
}

Expand Down
3 changes: 3 additions & 0 deletions test-programs/cpi-target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ solana-program = { workspace = true }

[lib]
crate-type = ["cdylib", "lib"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions test-programs/primary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ solana-program = { workspace = true }

[lib]
crate-type = ["cdylib", "lib"]

[lints]
workspace = true

0 comments on commit e2a9834

Please sign in to comment.