No need to create separate string for simple things
More efficient code - fewer allocations
Something that could be considered disadvantage is the ability to directly log surprising things, like u32 etc. My personal opinion is that it's not much of a problem.
Note that this is perfectly backward-compatible because &str: fmt::Display.
Advantages of this interface:
Something that could be considered disadvantage is the ability to directly log surprising things, like
u32
etc. My personal opinion is that it's not much of a problem.Note that this is perfectly backward-compatible because
&str: fmt::Display
.