From b273a8522cdb685d8c7e4e6e22c9d93362710fcb Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 6 Dec 2020 02:29:32 -0800 Subject: remove redundant calls to trim() --- 03/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '03/src/main.rs') diff --git a/03/src/main.rs b/03/src/main.rs index b8621da..2f07f44 100644 --- a/03/src/main.rs +++ b/03/src/main.rs @@ -16,7 +16,7 @@ fn main() -> Result<()> { for line in &input { let mut tree_line: Vec = Vec::new(); - for c in line.trim().chars() { + for c in line.chars() { if c == '#' { tree_line.push(true); } else { -- cgit 1.4.1