File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 95
95
- id : cargo-clippy-pythnet-sdk
96
96
name : Cargo clippy for pythnet SDK
97
97
language : " rust"
98
- entry : cargo +nightly-2024-08-04 clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
98
+ entry : cargo +1.82.0 clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
99
99
pass_filenames : false
100
100
files : pythnet/pythnet_sdk
101
101
# Hooks for solana receiver contract
Original file line number Diff line number Diff line change
1
+ 1.82.0
Original file line number Diff line number Diff line change @@ -84,10 +84,13 @@ pub mod v1 {
84
84
Error :: InvalidMagic
85
85
) ;
86
86
require ! ( message. major_version == 1 , Error :: InvalidVersion ) ;
87
- require ! (
88
- message. minor_version >= CURRENT_MINOR_VERSION ,
89
- Error :: InvalidVersion
90
- ) ;
87
+ #[ allow( clippy:: absurd_extreme_comparisons) ]
88
+ {
89
+ require ! (
90
+ message. minor_version >= CURRENT_MINOR_VERSION ,
91
+ Error :: InvalidVersion
92
+ ) ;
93
+ }
91
94
Ok ( message)
92
95
}
93
96
}
You can’t perform that action at this time.
0 commit comments