Skip to content

Commit a643176

Browse files
committed
fix: clippy
1 parent 5ed2785 commit a643176

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/rbuilder-primitives/src/ace.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,16 @@ pub fn classify_ace_interaction(
4242
let any_ace_slots_accessed = config
4343
.to_addresses
4444
.iter()
45-
.map(|address| {
45+
.flat_map(|address| {
4646
config.detection_slots.iter().map(|slot| SlotKey {
4747
address: *address,
4848
key: *slot,
4949
})
5050
})
51-
.flatten()
5251
.flat_map(|key| {
5352
[
54-
state_trace.read_slot_values.get(&key).is_some(),
55-
state_trace.written_slot_values.get(&key).is_some(),
53+
state_trace.read_slot_values.contains_key(&key),
54+
state_trace.written_slot_values.contains_key(&key),
5655
]
5756
})
5857
.any(|read_slot_of_interest| read_slot_of_interest);

crates/rbuilder/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ schnellru = "0.2.4"
129129
reipc = { git = "https://github.com/nethermindeth/reipc.git", rev = "b0b70735cda6273652212d1591188642e3449ed7" }
130130

131131
quick_cache = "0.6.11"
132-
strum = "0.27.2"
133132

134133
[target.'cfg(not(target_env = "msvc"))'.dependencies]
135134
tikv-jemallocator = "0.6"

0 commit comments

Comments
 (0)