diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-12-02 22:57:05 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-12-02 22:57:05 -0500 |
commit | 11db8a9b68cf047320b5d18081cbb692d8b95900 (patch) | |
tree | 556465ea520ece0552745b5d393e65f95e6c4531 | |
parent | e112f44360971a2909409af513be8f4df46627e5 (diff) | |
download | advent-of-code-11db8a9b68cf047320b5d18081cbb692d8b95900.tar.gz advent-of-code-11db8a9b68cf047320b5d18081cbb692d8b95900.zip |
remove debugging
-rw-r--r-- | src/2020/2/mod.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/2020/2/mod.rs b/src/2020/2/mod.rs index 71afd7a..a81665b 100644 --- a/src/2020/2/mod.rs +++ b/src/2020/2/mod.rs @@ -46,13 +46,8 @@ impl Line { } fn valid_part_2(&self) -> bool { - let valid = (self.password.chars().nth(self.n1 - 1) == Some(self.c)) - ^ (self.password.chars().nth(self.n2 - 1) == Some(self.c)); - println!( - "{}-{} {}: {} ({})", - self.n1, self.n2, self.c, self.password, valid, - ); - valid + (self.password.chars().nth(self.n1 - 1) == Some(self.c)) + ^ (self.password.chars().nth(self.n2 - 1) == Some(self.c)) } } |