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() --- 06/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '06/src') 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; -- cgit 1.4.1