Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: bump trezor, fix clippy (#1871)
Browse files Browse the repository at this point in the history
* chore: bump trezor, fix clippy

* update cargo lock

Co-authored-by: Dave Belvedere <dave@protonmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
  • Loading branch information
3 people authored Nov 20, 2022
1 parent f829bd6 commit 95d6567
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
33 changes: 7 additions & 26 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion ethers-core/src/types/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl<TX> Block<TX> {
// Casting to i64 is safe because the timestamp is guaranteed to be less than 2^63.
// TODO: It would be nice if there was `TryInto<i64> for U256`.
let secs = self.timestamp.as_u64() as i64;
Ok(Utc.timestamp(secs, 0))
Ok(Utc.timestamp_opt(secs, 0).unwrap())
}
}

Expand Down
2 changes: 1 addition & 1 deletion ethers-signers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ yubihsm = { version = "0.41.0", features = ["secp256k1", "http", "usb"], optiona
futures-util = { version = "^0.3", optional = true }
futures-executor = { version = "^0.3", optional = true }
semver = { version = "1.0.14", optional = true }
trezor-client = { version = "0.0.6", optional = true, default-features = false, features = [
trezor-client = { version = "0.0.7", optional = true, default-features = false, features = [
"f_ethereum",
] }

Expand Down

0 comments on commit 95d6567

Please sign in to comment.