From deece0c28aa02b9a09d6e0a9912227330aa16a6f Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 10 Aug 2026 16:14:40 +0800 Subject: chore: update example docs for PanicSilence enum usage --- mingling/src/example_docs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index 6732050..61d2e3f 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -2472,6 +2472,7 @@ pub mod example_pack_err {} /// /// Source code (./src/main.rs) /// ```ignore +/// use mingling::PanicSilence; /// use mingling::{hook::ProgramHook, prelude::*}; /// use std::io::Write; /// @@ -2484,7 +2485,7 @@ pub mod example_pack_err {} /// /// // --------- IMPORTANT --------- /// // Enable silence_panic to suppress automatic Panic output -/// program.stdout_setting.silence_panic = true; +/// program.stdout_setting.silence_panic = PanicSilence::Silence; /// /// // Define a hook to output &ProgramPanic when a Panic occurs /// program.with_hook( @@ -2509,7 +2510,6 @@ pub mod example_pack_err {} /// } /// /// /// Renders the message when no panic occurs. -/// /// Renders the message when no panic occurs. /// #[renderer] /// pub fn render(_: NotPanic) -> RenderResult { /// let mut render_result = RenderResult::new(); -- cgit