uint icon indicating copy to clipboard operation
uint copied to clipboard

Do not 0 pad on debug and hex formatting

Open onbjerg opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Currently ruint types add leading 0s in the debug and hex formatting impls, but Rust's own primitive types do not do this.

If you want leading zeros, you can use the padding built in to the Rust formatter

Describe the solution you'd like

Remove leading zeros

onbjerg avatar Nov 21 '23 02:11 onbjerg

@recmo wdyt here? we're happy to fix

gakonst avatar Nov 21 '23 03:11 gakonst

related, padding directives are not currently supported https://github.com/recmo/uint/issues/295

prestwich avatar Feb 27 '24 22:02 prestwich