Calling the print! or write! macros with an empty format string has no effect.
Such statements are probably remnants of debugging. Remove them.
let mut buf = String::new();
write!(&mut buf, "");