From 53ac1088c77f1cde7c9669deb5f91de3aebfc500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Flemstr=C3=B6m?= Date: Tue, 29 Oct 2024 17:15:39 +0100 Subject: [PATCH] layer: Fix example usage doctest compiler errors --- crates/layer/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/layer/src/lib.rs b/crates/layer/src/lib.rs index c3905ad..f66fcad 100644 --- a/crates/layer/src/lib.rs +++ b/crates/layer/src/lib.rs @@ -20,8 +20,8 @@ //! //! let out_file = "native-layer-example.pftrace"; //! let trace_config = todo!(); -//! let out_file = fs::File::create(out_file)?; -//! let layer = NativeLayer::from_config(trace_config, out_file).build()?; +//! let out_file = fs::File::create(out_file).unwrap(); +//! let layer = NativeLayer::from_config(trace_config, out_file).build().unwrap(); //! //! let subscriber = tracing_subscriber::registry().with(layer); //!