From b0bdab6039232f25c9fe89ef3cf260822cc554c8 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Sun, 15 Dec 2024 22:12:33 +0100 Subject: [PATCH] chore: fmt --- src/bin/12.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/bin/12.rs b/src/bin/12.rs index fce1efd..17ccccf 100644 --- a/src/bin/12.rs +++ b/src/bin/12.rs @@ -179,13 +179,11 @@ impl Region { // println!(" Outward Angles: {}", outward_angles); let inward_angles = neighbors_map .values() - .map(|ps| { - match ps.len() { - 2 => 1, - 3 => 2, - 4 => 4, - _ => 0, - } + .map(|ps| match ps.len() { + 2 => 1, + 3 => 2, + 4 => 4, + _ => 0, }) .sum::(); // println!("Region {:} -> inward angles: {}, outward angles: {}", self.c, inward_angles, outward_angles);