1 2 3 4 5 6 7 8 9
#[cfg(not(feature = "logger"))] pub(crate) struct FakeSpan; #[cfg(not(feature = "logger"))] impl FakeSpan { pub fn in_scope<F: FnOnce() -> T, T>(&self, func: F) -> T { func() } }