Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
f-jin
· 7y ago · 0 comments
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.
Comments
[–]
thenewwazoo
7y ago
That's a good idea! I don't often impl Display so it didn't even occur to me.