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 /04 | |
parent | aab48390371e0e79b9e00783e645bc1f6dfadd41 (diff) |
remove redundant calls to trim()
Diffstat (limited to '04')
-rw-r--r-- | 04/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |