Hacker News new | ask | show | jobs
by f-jin 2610 days ago
Instead of implementing `ToString` directly, you should implement `Display`. A `ToString` implementation will automatically be added, and you get all the formatting goodness out of the box.
1 comments

That's a good idea! I don't often impl Display so it didn't even occur to me.