summary refs log tree commit diff
path: root/06/src
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 /06/src
parentaab48390371e0e79b9e00783e645bc1f6dfadd41 (diff)
remove redundant calls to trim()
Diffstat (limited to '06/src')
-rw-r--r--06/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/06/src/main.rs b/06/src/main.rs
index 00d065c..c0045e0 100644
--- a/06/src/main.rs
+++ b/06/src/main.rs
@@ -12,8 +12,7 @@ fn main() -> Result<()> {
   let filename = args.next().unwrap();
 
   let input = advent_lib::read_lines_file(&filename)?;
-  let trimmed = advent_lib::trim_lines(&input);
-  let groups = advent_lib::group_lines_by_blanks(trimmed);
+  let groups = advent_lib::group_lines_by_blanks(input);
 
   let mut unioned_sum = 0;