diff --git a/src/lib.rs b/src/lib.rs index 48b5f5f..052b88e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,10 +53,10 @@ mod udiv128; #[cfg(feature = "std")] -use std::{fmt, io, mem, ptr, slice, str}; +use std::{io, mem, ptr, slice, str}; #[cfg(not(feature = "std"))] -use core::{fmt, mem, ptr, slice, str}; +use core::{mem, ptr, slice, str}; use self::mem::MaybeUninit; @@ -72,13 +72,6 @@ pub fn write(mut wr: W, value: V) -> io::Result } } -/// Write integer to an `fmt::Write`. -#[inline] -pub fn fmt(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. /// /// # Example