From b1fe788bf0186d9b5763ceebd29a6f7e30a9139d Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Tue, 17 Dec 2024 18:30:22 +0100 Subject: [PATCH] Fix broken doc test (#8517) This broke `cargo t --all --all-features`, which is not run on CI, hence why it doesn't show up there. --- crates/top/rerun/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/top/rerun/src/lib.rs b/crates/top/rerun/src/lib.rs index 486e96a4ae7a..c96f194d11a6 100644 --- a/crates/top/rerun/src/lib.rs +++ b/crates/top/rerun/src/lib.rs @@ -81,12 +81,13 @@ //! You can buffer the log messages in memory and then show them in an embedded viewer: //! //! ```no_run +//! # let main_thread_token = re_capabilities::MainThreadToken::i_promise_i_am_on_the_main_thread(); //! # fn log_to(rec: &rerun::RecordingStream) {} //! let (rec, storage) = rerun::RecordingStreamBuilder::new("rerun_example_app").memory()?; //! log_to(&rec); //! //! // Will block program execution! -//! rerun::native_viewer::show(storage.take()); +//! rerun::native_viewer::show(main_thread_token, storage.take()); //! //! # Ok::<(), Box>(()) //! ```