Inline itoa::write

This commit is contained in:
David Tolnay 2016-06-25 15:09:27 -07:00
parent f9a75c0c39
commit 4369fc4dc7
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
use std::{io, mem, ptr, slice}; use std::{io, mem, ptr, slice};
#[inline]
pub fn write<W: io::Write, V: Integer>(wr: &mut W, value: V) -> io::Result<()> { pub fn write<W: io::Write, V: Integer>(wr: &mut W, value: V) -> io::Result<()> {
value.write(wr) value.write(wr)
} }