Skip to content

Commit 4847a0f

Browse files
committed
lint
1 parent 2ef11ad commit 4847a0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

beacon_node/beacon_chain/src/snapshot_cache.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ impl<T: EthSpec> SnapshotCache<T> {
174174
self.snapshots.iter().map(|s| s.beacon_block_root).collect()
175175
}
176176

177+
#[allow(clippy::len_without_is_empty)]
177178
/// The number of snapshots contained in `self`.
178179
pub fn len(&self) -> usize {
179180
self.snapshots.len()

0 commit comments

Comments
 (0)