Closed
Description
Location
Summary
The docs for write_fmt
in Formatter do not line up with the docs for write_fmt
in the Write trait. The write trait warns you that you should be using the write!
macro, but the method in Formatter
doesn't. If you are implementing core::fmt::Debug
and call write_fmt
on the provided Formatter
object directly, and use the wrong arguments, the rust-analyzer error will use Formatter
docs, which will mislead the user into simply wrapping the arguments via format_args!
instead of using a write!
macro.