File tree 3 files changed +2
-3
lines changed
programs/example-native-token-transfers/src
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 70
70
run : cargo check --workspace --tests --manifest-path solana/Cargo.toml
71
71
72
72
- name : Run `cargo clippy`
73
- run : cargo clippy --workspace --tests --manifest-path solana/Cargo.toml -- -Dclippy::cast_possible_truncation
73
+ run : cargo clippy --workspace --tests --manifest-path solana/Cargo.toml
74
74
75
75
- name : Cache solana tools
76
76
id : cache-solana
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ resolver = "2"
9
9
[workspace .lints .clippy ]
10
10
# The following rules should be enabled but conflict with other open PRs.
11
11
# TODO enable the commented rules below
12
- # cast_possible_truncation = "deny"
12
+ cast_possible_truncation = " deny"
13
13
# cast_lossless= "deny"
14
14
# as_conversions = "deny"
15
15
# arithmetic_side_effects = "deny"
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ impl Bitmap {
41
41
Ok ( BM :: < 128 > :: from_value ( self . map ) . get ( usize:: from ( index) ) )
42
42
}
43
43
44
- #[ allow( clippy:: cast_possible_truncation) ]
45
44
pub fn count_enabled_votes ( & self , enabled : Bitmap ) -> u8 {
46
45
let bm = BM :: < 128 > :: from_value ( self . map ) & BM :: < 128 > :: from_value ( enabled. map ) ;
47
46
bm. len ( )
You can’t perform that action at this time.
0 commit comments