From 9bee39d5bb89f74820b448d3dbb6617c64141ab7 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Thu, 5 Mar 2026 08:49:01 +0100 Subject: doc --- src/panic.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/panic.rs') 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 -- cgit v1.2.3