mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-02 20:34:27 +00:00
Deny warnings on CI (#1372)
## Issue Addressed Prevent CI from succeeding when there are warnings. Code can still be built and tested with warnings locally, but CI may fail during a Rust update (which is fine IMO). ## Proposed Changes * Deny warnings for all stable compiler jobs on CI (excludes `cargo udeps`, which runs under nightly) * Fix the warnings currently on `master` related to unnecessary `mem::replace`
This commit is contained in:
@@ -211,7 +211,7 @@ impl ValidatorsListTreeHashCache {
|
||||
.list_cache
|
||||
.recalculate_merkle_root(&mut list_arena, leaves.into_iter())?;
|
||||
|
||||
std::mem::replace(&mut self.list_arena, list_arena);
|
||||
self.list_arena = list_arena;
|
||||
|
||||
Ok(mix_in_length(&list_root, validators.len()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user