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

Commit

Permalink
lint: couple clippies (#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich authored Apr 25, 2023
1 parent 885e368 commit 63be7d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ethers-core/src/types/block.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Modified from <https://github.com/tomusdrw/rust-web3/blob/master/src/types/block.rs>

use crate::types::{Address, Bloom, Bytes, Transaction, TxHash, Withdrawal, H256, U256, U64};
#[cfg(not(feature = "celo"))]
use crate::types::Withdrawal;
use crate::types::{Address, Bloom, Bytes, Transaction, TxHash, H256, U256, U64};
use chrono::{DateTime, TimeZone, Utc};
use serde::{
de::{MapAccess, Visitor},
Expand Down
2 changes: 1 addition & 1 deletion ethers-solc/src/artifacts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@ fn fmt_framed_location(
})?;

if let Some((range, style)) = highlight {
let Range { start, end } = range.clone();
let Range { start, end } = range;
let rest_start = line.len() - rest.len();
f.write_str(&line[rest_start..start])?;
styled(f, style, |f| f.write_str(&line[range]))?;
Expand Down

0 comments on commit 63be7d4

Please sign in to comment.