▲ | joshka 3 days ago | |
If you're going to the effort of writing a procmacro, you may as well output a string from the macro instead of code. If you're going idiomatic rust, then you might instead output a type that has a display impl rather than generating code that writes to stdout. |