From 7e07a8dbbbdd2ea1c1fc03555a20cdb10031c9ed Mon Sep 17 00:00:00 2001 From: Kristof Mattei <864376+Kristof-Mattei@users.noreply.github.com> Date: Thu, 24 Aug 2023 09:17:31 -0700 Subject: [PATCH] fix: remove unneeded type annotations --- src/day_14/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/day_14/mod.rs b/src/day_14/mod.rs index c8ce8cda..1295e884 100644 --- a/src/day_14/mod.rs +++ b/src/day_14/mod.rs @@ -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); } } } @@ -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); } }