diff options
author | Irene Knapp <ireneista@gmail.com> | 2020-12-06 02:29:32 -0800 |
---|---|---|
committer | Irene Knapp <ireneista@gmail.com> | 2020-12-06 02:29:32 -0800 |
commit | b273a8522cdb685d8c7e4e6e22c9d93362710fcb (patch) | |
tree | 911c1a777f4ca51b683923299b2fc21000513757 /03/src | |
parent | aab48390371e0e79b9e00783e645bc1f6dfadd41 (diff) |
remove redundant calls to trim()
Diffstat (limited to '03/src')
-rw-r--r-- | 03/src/main.rs | 2 |
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 { |