Skip to content

Commit

Permalink
Merge pull request #356 from kristof-mattei/remove-unneeded-type-anno…
Browse files Browse the repository at this point in the history
…tations

fix: remove unneeded type annotations
  • Loading branch information
kristof-mattei authored Aug 24, 2023
2 parents 73716ed + 40e9eb2 commit 8d448c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/day_14/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ fn dump_field(
Some(Contents::Rock) => '#',
};

let _: Result<_, _> = write!(lock, "{}", character);
let _ = write!(lock, "{}", character);
}

let _: Result<_, _> = writeln!(lock);
let _ = writeln!(lock);
}
}
}
Expand All @@ -384,10 +384,10 @@ fn dump_field_with_base(
let mut lock = stdout().lock();

for _ in (min_column_index - 2)..=(max_column_index + 2) {
let _: Result<_, _> = write!(lock, "#");
let _ = write!(lock, "#");
}

let _: Result<_, _> = writeln!(lock);
let _ = writeln!(lock);
}
}

Expand Down

0 comments on commit 8d448c8

Please # to comment.