Lokathor / tinyvec

Just, really the littlest Vec you could need. So smol.
https://docs.rs/tinyvec
Apache License 2.0
648 stars 49 forks source link

TinyVec::fmt - fix pretty printing #138

Closed Soveu closed 3 years ago

Soveu commented 3 years ago

Fixes #137

Lokathor commented 3 years ago

Can you do the same thing for ArrayVec too?

Soveu commented 3 years ago

I'll go through all the format impls and see what else can be replaced with slice fmt

Soveu commented 3 years ago

I noticed that slices, arrays and std Vec do not implement Display, Binary or any other formatting impl, only Debug. Removing them (for consistency) here would be a breaking change, so I guess only Debug impls will be modified.

Lokathor commented 3 years ago

You would need to do the new line manually after each line is printed. I can merge this and do the rest myself later if you like.

Soveu commented 3 years ago

I mean, the changes to Debug are pretty simple, I was just busy with RL stuff for past few hours :D

Lokathor commented 3 years ago

Sure, no worries.