summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--01/src/main.rs1
-rw-r--r--03/src/main.rs2
-rw-r--r--04/src/main.rs2
-rw-r--r--06/src/main.rs3
4 files changed, 4 insertions, 4 deletions
diff --git a/01/src/main.rs b/01/src/main.rs
index 21c164b..b7cdbbf 100644
--- a/01/src/main.rs
+++ b/01/src/main.rs
@@ -65,3 +65,4 @@ fn main() -> Result<()> {
 
   Ok(())
 }
+
diff --git a/03/src/main.rs b/03/src/main.rs
index b8621da..2f07f44 100644
--- a/03/src/main.rs
+++ b/03/src/main.rs
@@ -16,7 +16,7 @@ fn main() -> Result<()> {
   for line in &input {
     let mut tree_line: Vec<bool> = Vec::new();
 
-    for c in line.trim().chars() {
+    for c in line.chars() {
       if c == '#' {
         tree_line.push(true);
       } else {
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
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;