mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix tracing issue
This commit is contained in:
parent
7f7bba6ea3
commit
1e9d345831
2 changed files with 2 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue