Skip to content

Commit 08b95f7

Browse files
committed
chore(pythnet/pythnet_sdk): fix Rust version
1 parent f82cfc7 commit 08b95f7

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ repos:
9595
- id: cargo-clippy-pythnet-sdk
9696
name: Cargo clippy for pythnet SDK
9797
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
9999
pass_filenames: false
100100
files: pythnet/pythnet_sdk
101101
# Hooks for solana receiver contract

pythnet/pythnet_sdk/rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.82.0

pythnet/pythnet_sdk/src/wire.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ pub mod v1 {
8484
Error::InvalidMagic
8585
);
8686
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+
}
9194
Ok(message)
9295
}
9396
}

0 commit comments

Comments
 (0)