jonasbb / serde_with

This crate provides custom de/serialization helpers to use in combination with serde's `with`-annotation and with the improved `serde_as`-annotation.
https://docs.rs/serde_with
Apache License 2.0
638 stars 67 forks source link

Replace uses of write! with write_str and write_fmt #699

Closed jonasbb closed 7 months ago

jonasbb commented 7 months ago

write! with a single string argument is not properly optimized and using write_str generates better code: https://github.com/serde-rs/serde/pull/2697 https://github.com/rust-lang/rust/pull/121001