Skip to content

Commit 938c9ba

Browse files
authored
chore(ci): fix lazer solana contract ci (#2847)
1 parent 18c4a44 commit 938c9ba

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lazer/contracts/solana/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lazer/contracts/solana/programs/pyth-lazer-solana-contract/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description = "Pyth Lazer Solana contract and SDK."
66
license = "Apache-2.0"
77
repository = "https://github.com/pyth-network/pyth-crosschain"
88

9+
# Forces recent toolchains to create a lockfile compatible with the current anchor/solana version.
10+
rust-version = "1.75.0"
11+
912
[lib]
1013
crate-type = ["cdylib", "lib"]
1114
name = "pyth_lazer_solana_contract"

lazer/sdk/rust/protocol/src/router.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ impl TryFrom<&Timestamp> for TimestampUs {
4141
impl From<TimestampUs> for Timestamp {
4242
fn from(value: TimestampUs) -> Self {
4343
Timestamp {
44-
#[allow(
45-
clippy::cast_possible_wrap,
46-
reason = "u64 to i64 after this division can never overflow because the value cannot be too big"
47-
)]
44+
// u64 to i64 after this division can never overflow because the value cannot be too big
45+
#[allow(clippy::cast_possible_wrap)]
4846
seconds: (value.0 / 1_000_000) as i64,
4947
nanos: (value.0 % 1_000_000) as i32 * 1000,
5048
special_fields: Default::default(),

0 commit comments

Comments
 (0)