diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-10 16:14:40 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-10 16:14:40 +0800 |
| commit | deece0c28aa02b9a09d6e0a9912227330aa16a6f (patch) | |
| tree | a2a27d8604d95f5d8e27170d7e3bad9d4dbff9cd /mingling/src/example_docs.rs | |
| parent | 49d53af58f249370553ea5f5af20d4dab80861aa (diff) | |
chore: update example docs for PanicSilence enum usage
Diffstat (limited to 'mingling/src/example_docs.rs')
| -rw-r--r-- | mingling/src/example_docs.rs | 4 |
1 files 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(); |
