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 /06 | |
parent | aab48390371e0e79b9e00783e645bc1f6dfadd41 (diff) |
remove redundant calls to trim()
Diffstat (limited to '06')
-rw-r--r-- | 06/src/main.rs | 3 |
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; |