From 0c13cda730a105a1e566b3cd30d18f1d586e3788 Mon Sep 17 00:00:00 2001 From: Agost Biro Date: Tue, 5 Nov 2024 16:07:19 +0000 Subject: [PATCH] Add conditional import --- crates/edr_napi/src/context.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/edr_napi/src/context.rs b/crates/edr_napi/src/context.rs index 219ee0c27..f2be587a1 100644 --- a/crates/edr_napi/src/context.rs +++ b/crates/edr_napi/src/context.rs @@ -1,5 +1,7 @@ use std::{ops::Deref, sync::Arc}; +#[cfg(feature = "tracing")] +use napi::Status; use napi_derive::napi; use tracing_subscriber::{prelude::*, EnvFilter, Registry};