mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Clippy lints for rust 1.66 (#3810)
## Issue Addressed Fixes the new clippy lints for rust 1.66 ## Proposed Changes Most of the changes come from: - [unnecessary_cast](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast) - [iter_kv_map](https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map) - [needless_borrow](https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow) ## Additional Info na
This commit is contained in:
@@ -675,7 +675,7 @@ pub mod tests {
|
||||
#[test]
|
||||
fn test_finalization_boundaries() {
|
||||
let n = 8;
|
||||
let half = (n / 2) as usize;
|
||||
let half = n / 2;
|
||||
|
||||
let mut deposit_cache = get_cache_with_deposits(n as u64);
|
||||
|
||||
@@ -828,9 +828,9 @@ pub mod tests {
|
||||
// get_log(half+quarter) should return log with index `half+quarter`
|
||||
assert_eq!(
|
||||
q3_log_before_finalization.index,
|
||||
(half + quarter) as u64,
|
||||
half + quarter,
|
||||
"log index should be {}",
|
||||
(half + quarter),
|
||||
half + quarter,
|
||||
);
|
||||
|
||||
// get lower quarter of deposits with max deposit count
|
||||
|
||||
Reference in New Issue
Block a user