]> code.octet-stream.net Git - hashgood/commitdiff
Fix clippy lint for write! vs writeln! master v0.5.0
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Mon, 16 Dec 2024 09:03:11 +0000 (20:03 +1100)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Mon, 16 Dec 2024 09:03:11 +0000 (20:03 +1100)
src/display.rs

index 1a3b243cfdfda2e708550126bb2c2799504e44c6..07eb83fed8030149782c6f0f747c6a903d0ede09 100644 (file)
@@ -80,7 +80,7 @@ fn print_pointer_line(
             write!(&mut stdout, "{}{}", marker, marker)?;
         }
     }
-    write!(&mut stdout, "\n")?;
+    writeln!(&mut stdout)?;
     Ok(())
 }