Skip to content

Commit

Permalink
chore: Suppress clippy::useless_conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Dec 31, 2024
1 parent 1e37e97 commit 2d3a8e3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ default-members = [
"runtime/common",
]

[workspace.lints.clippy]
useless_conversion = "allow"

[workspace.dependencies]
ark-bn254 = { version = "0.4.0", default-features = false, features = ["curve"] }
assert_matches = "1.5.0"
Expand Down
3 changes: 3 additions & 0 deletions frame/babel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ edition = { workspace = true }
repository = { workspace = true }
publish = false

[lints]
workspace = true

[dependencies]
bech32 = { workspace = true, optional = true }
cosmos-sdk-proto = { workspace = true, optional = true }
Expand Down
3 changes: 3 additions & 0 deletions frame/cosmos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ edition = { workspace = true }
repository = { workspace = true }
publish = false

[lints]
workspace = true

[dependencies]
cosmos-sdk-proto = { workspace = true }
frame-support = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion frame/cosmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unreachable_patterns)]
#![allow(clippy::useless_conversion)]

extern crate alloc;

Expand Down
3 changes: 3 additions & 0 deletions frame/solana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ edition = { workspace = true }
repository = { workspace = true }
publish = false

[lints]
workspace = true

[dependencies]
bincode = { workspace = true }
derive-where = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion vendor/solana/program-runtime/src/invoke_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ pub fn mock_process_instruction<F: FnMut(&mut InvokeContext), G: FnMut(&mut Invo
{
transaction_accounts.push((
sysvar::epoch_schedule::id(),
create_account_shared_data_for_test(&EpochSchedule::default()).into(),
create_account_shared_data_for_test(&EpochSchedule::default()),
));
true
} else {
Expand Down

0 comments on commit 2d3a8e3

Please sign in to comment.