Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lazer/contracts/solana/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ description = "Pyth Lazer Solana contract and SDK."
license = "Apache-2.0"
repository = "https://github.com/pyth-network/pyth-crosschain"

# Forces recent toolchains to create a lockfile compatible with the current anchor/solana version.
rust-version = "1.75.0"

[lib]
crate-type = ["cdylib", "lib"]
name = "pyth_lazer_solana_contract"
Expand Down
6 changes: 2 additions & 4 deletions lazer/sdk/rust/protocol/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ impl TryFrom<&Timestamp> for TimestampUs {
impl From<TimestampUs> for Timestamp {
fn from(value: TimestampUs) -> Self {
Timestamp {
#[allow(
clippy::cast_possible_wrap,
reason = "u64 to i64 after this division can never overflow because the value cannot be too big"
)]
// u64 to i64 after this division can never overflow because the value cannot be too big
#[allow(clippy::cast_possible_wrap)]
seconds: (value.0 / 1_000_000) as i64,
nanos: (value.0 % 1_000_000) as i32 * 1000,
special_fields: Default::default(),
Expand Down