Remove #[inline(never)] annotations
On further testing, I find that these annotations no longer have an effect on performance. Whether that's due to wrong methodology or changes in rustc codegen I'm not sure.
This commit is contained in:
parent
d976bdfc11
commit
f57aa4ace0
1 changed files with 0 additions and 2 deletions
|
@ -68,7 +68,6 @@ pub trait Render {
|
|||
}
|
||||
|
||||
impl<T: fmt::Display + ?Sized> Render for T {
|
||||
#[inline(never)] // reduce code bloat due to write!()
|
||||
default fn render_to(&self, w: &mut String) {
|
||||
let _ = write!(Escaper::new(w), "{}", self);
|
||||
}
|
||||
|
@ -126,7 +125,6 @@ impl<'a, T: Render + ?Sized> RenderOnce for &'a T {
|
|||
pub struct PreEscaped<T>(pub T);
|
||||
|
||||
impl<T: fmt::Display> Render for PreEscaped<T> {
|
||||
#[inline(never)] // reduce code bloat due to write!()
|
||||
default fn render_to(&self, w: &mut String) {
|
||||
let _ = write!(w, "{}", self.0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue