rust-lang-deprecated / error-chain

Error boilerplate for Rust
Apache License 2.0
728 stars 111 forks source link

Remove unnecessary to_string within println #296

Open Phytolizer opened 4 years ago

Phytolizer commented 4 years ago

I noticed a small error in the documentation. to_string is not necessary when in the context of a println! call, because both to_string and the {} format specifier use the Display trait. In other words, to_string is implied. It's not really a big deal, but I do think it is a mistake.