Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 1faaddb

Browse files
committed
Fix day 24 clippy
1 parent 862dda2 commit 1faaddb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/day24/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ fn cure_p2(mut input: Input) -> Input {
175175
}
176176

177177
fn p2(input: &str) -> String {
178-
let input = cure_p2(Input::parse_input(&input));
178+
let input = cure_p2(Input::parse_input(input));
179179

180180
let mut output = String::new();
181181

182182
output.push_str("digraph G {\n");
183183

184184
let mut number = 0;
185-
while input.wires.get(&get_x(number)).is_some() {
185+
while input.wires.contains_key(&get_x(number)) {
186186
output.push_str(&format!(
187187
r#" subgraph c_{} {{
188188
{} [style=filled,fillcolor=green];

0 commit comments

Comments
 (0)