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
There is no way to know how many bytes were written in the result, which is a problem when using write with a stack-allocated array. Returning io::Result<usize> would allow this:
letmut buf = [b'\0';20];let len = itoa::write(&mut buf, value)?;let result = &buf[0..len];
The text was updated successfully, but these errors were encountered:
nox
added a commit
to nox/itoa
that referenced
this issue
Jan 28, 2017
There is no way to know how many bytes were written in the result, which is a problem when using
write
with a stack-allocated array. Returningio::Result<usize>
would allow this:The text was updated successfully, but these errors were encountered: