diff options
| author | Jonas Maier <> | 2026-03-05 08:49:01 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-05 08:49:01 +0100 |
| commit | 9bee39d5bb89f74820b448d3dbb6617c64141ab7 (patch) | |
| tree | f84892e9d4d72c67244d48423b095f62efe4edb5 /src | |
| parent | 9e617dde12565ba4e0ec737893b204a5e5271689 (diff) | |
| download | pish-9bee39d5bb89f74820b448d3dbb6617c64141ab7.tar.gz | |
doc
Diffstat (limited to 'src')
| -rw-r--r-- | src/panic.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/panic.rs b/src/panic.rs index 0df0a4e..3ff2167 100644 --- a/src/panic.rs +++ b/src/panic.rs @@ -1,3 +1,10 @@ +//! the whole point of this is module such that it is possible +//! to print the panic while the terminal is in raw mode +//! +//! without carriage returns +//! the content +//! spills to the right + use std::backtrace::{Backtrace, BacktraceStatus}; use std::io::{self, Write}; use std::panic::{self, PanicHookInfo}; @@ -30,7 +37,7 @@ fn panic_hook(info: &PanicHookInfo<'_>) { BacktraceStatus::Disabled => msg += "no backtrace", _ => { msg += &format!("{bt}\n"); - }, + } } // TODO: add link to repo or sth |
