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() --- 04/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '04/src') diff --git a/04/src/main.rs b/04/src/main.rs index 701f60d..9444725 100644 --- a/04/src/main.rs +++ b/04/src/main.rs @@ -26,7 +26,7 @@ fn main() -> Result<()> { let mut current_is_valid = true; for line in &input { - if line.trim().len() == 0 { + if line.len() == 0 { //println!("{:?}", current_fields); if current_is_valid -- cgit 1.4.1