diff --git a/src/buffer/mod.rs b/src/buffer/mod.rs index 5c724f3..b63c112 100644 --- a/src/buffer/mod.rs +++ b/src/buffer/mod.rs @@ -50,6 +50,7 @@ impl Buffer { /// checks for special cases. /// /// [spec]: https://tc39.es/ecma262/#sec-numeric-types-number-tostring + #[inline] #[cfg_attr(feature = "no-panic", inline)] #[cfg_attr(feature = "no-panic", no_panic)] pub fn format(&mut self, f: F) -> &str { @@ -98,6 +99,7 @@ impl Buffer { /// "Infinity", and negative infinity as "-Infinity" to match the [ECMAScript specification][spec]. /// /// [spec]: https://tc39.es/ecma262/#sec-numeric-types-number-tofixed + #[inline] #[cfg_attr(feature = "no-panic", inline)] #[cfg_attr(feature = "no-panic", no_panic)] pub fn format_to_fixed(&mut self, f: F, fraction_digits: u8) -> &str {