Remove not necessary inline attributes

Now with the bug fixed we can optimise this code for size.
This commit is contained in:
Berkus Decker 2020-10-13 22:16:19 +03:00
parent 44ef31ff77
commit 2ef8999daf
1 changed files with 0 additions and 3 deletions

View File

@ -60,7 +60,6 @@ impl<'a> fmt::Write for WriteTo<'a> {
}
#[allow(unused)]
#[inline]
pub fn show<'a>(buffer: &'a mut [u8], args: fmt::Arguments) -> Result<&'a str, fmt::Error> {
let mut w = WriteTo::new(buffer);
fmt::write(&mut w, args)?;
@ -69,8 +68,6 @@ pub fn show<'a>(buffer: &'a mut [u8], args: fmt::Arguments) -> Result<&'a str, f
// Return a zero-terminated str
#[allow(unused)]
#[inline]
// Crazy bug - result of this call disappears if it's not inlined (https://github.com/rust-lang/rust/issues/68812)
pub fn c_show<'a>(buffer: &'a mut [u8], args: fmt::Arguments) -> Result<&'a str, fmt::Error> {
let mut w = WriteTo::new(buffer);
fmt::write(&mut w, args)?;