feat: tracing is now optional

This commit is contained in:
PoiScript 2024-03-06 15:42:32 +08:00
parent 14d1555fc1
commit f65e240e92
No known key found for this signature in database
GPG key ID: 22C2B1249D99985E
26 changed files with 184 additions and 45 deletions

View file

@ -16,7 +16,10 @@ use super::{
SyntaxKind,
};
#[tracing::instrument(level = "debug", skip(input), fields(input = input.s))]
#[cfg_attr(
feature = "tracing",
tracing::instrument(level = "debug", skip(input), fields(input = input.s))
)]
pub fn clock_node(input: Input) -> IResult<Input, GreenElement, ()> {
let mut parser = map(
tuple((