Make the tracing macros optional.
This commit is contained in:
@@ -35,7 +35,7 @@ pub fn element(
|
||||
move |context: Context, input: &str| _element(context, input, can_be_paragraph)
|
||||
}
|
||||
|
||||
#[tracing::instrument(ret, level = "debug")]
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn _element<'r, 's>(
|
||||
context: Context<'r, 's>,
|
||||
input: &'s str,
|
||||
|
||||
Reference in New Issue
Block a user