You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't realize those parameters were exposed. Are you interested in working on this? If not, I'm going to mark this as help-wanted, and see if someone wants to fix it more quickly than I can get around to it.
For anyone interested in working on this. Display::fmt takes a Formatter argument that contains information about the requested padding and alignment. We need to add logic to read that and then pad the outputs accordingly before writing them.
I took a look into this over the weekend, and it's actually a pretty small fix. The fmt module exposes a method for formatting strings already so it was as easy as hooking into that. #95
For struct like:
The call:
Will print:
But this expected:
The workaround today only to convert it to string first:
The text was updated successfully, but these errors were encountered: