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

Commit

Permalink
Fix day 24 clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yamgent committed Dec 25, 2024
1 parent 862dda2 commit 1faaddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/day24/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ fn cure_p2(mut input: Input) -> Input {
}

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

let mut output = String::new();

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

let mut number = 0;
while input.wires.get(&get_x(number)).is_some() {
while input.wires.contains_key(&get_x(number)) {
output.push_str(&format!(
r#" subgraph c_{} {{
{} [style=filled,fillcolor=green];
Expand Down

0 comments on commit 1faaddb

Please sign in to comment.