Delete fmt function
This commit is contained in:
parent
42cb96a975
commit
9cf53f1083
11
src/lib.rs
11
src/lib.rs
|
@ -53,10 +53,10 @@
|
||||||
mod udiv128;
|
mod udiv128;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use std::{fmt, io, mem, ptr, slice, str};
|
use std::{io, mem, ptr, slice, str};
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
use core::{fmt, mem, ptr, slice, str};
|
use core::{mem, ptr, slice, str};
|
||||||
|
|
||||||
use self::mem::MaybeUninit;
|
use self::mem::MaybeUninit;
|
||||||
|
|
||||||
|
@ -72,13 +72,6 @@ pub fn write<W: io::Write, V: Integer>(mut wr: W, value: V) -> io::Result<usize>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Write integer to an `fmt::Write`.
|
|
||||||
#[inline]
|
|
||||||
pub fn fmt<W: fmt::Write, V: Integer>(mut wr: W, value: V) -> fmt::Result {
|
|
||||||
let mut buf = Buffer::new();
|
|
||||||
wr.write_str(buf.format(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A safe API for formatting integers to text.
|
/// A safe API for formatting integers to text.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
|
|
Loading…
Reference in New Issue