fix tracing issue

This commit is contained in:
Greg Johnston 2024-05-11 18:24:40 -04:00
parent 7f7bba6ea3
commit 1e9d345831
2 changed files with 2 additions and 12 deletions

View file

@ -107,12 +107,7 @@ macro_rules! render_primitive {
if matches!(position, Position::NextChildAfterText) {
buf.push_str("<!>")
}
if let Err(e) = write!(buf, "{}", self) {
#[cfg(feature = "tracing")]
tracing::error!(e);
#[cfg(not(feature = "tracing"))]
{ _ = e;}
}
_ = write!(buf, "{}", self);
*position = Position::NextChildAfterText;
}

View file

@ -82,12 +82,7 @@ macro_rules! render_primitive {
if matches!(position, Position::NextChildAfterText) {
buf.push_str("<!>")
}
if let Err(e) = write!(buf, "{}", self) {
#[cfg(feature = "tracing")]
tracing::error!(e);
#[cfg(not(feature = "tracing"))]
{ _ = e;}
}
_ = write!(buf, "{}", self);
*position = Position::NextChildAfterText;
}