summary refs log tree commit diff
path: root/03
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-06 02:29:32 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-06 02:29:32 -0800
commitb273a8522cdb685d8c7e4e6e22c9d93362710fcb (patch)
tree911c1a777f4ca51b683923299b2fc21000513757 /03
parentaab48390371e0e79b9e00783e645bc1f6dfadd41 (diff)
remove redundant calls to trim()
Diffstat (limited to '03')
-rw-r--r--03/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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<bool> = Vec::new();
 
-    for c in line.trim().chars() {
+    for c in line.chars() {
       if c == '#' {
         tree_line.push(true);
       } else {