From a3c4ed407d975c3ae14a6f80dadeff59e8a71d15 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Sun, 14 Sep 2025 17:30:35 +0200 Subject: [PATCH] Add some docs --- src/handlers/graphical.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs index 60efeed..652c1b8 100644 --- a/src/handlers/graphical.rs +++ b/src/handlers/graphical.rs @@ -21,6 +21,14 @@ This printer can be customized by using [`new_themed()`](GraphicalReportHandler: See [`set_hook()`](crate::set_hook) for more details on customizing your global printer. + +The width with which reports get printed depends on the configured width value, but can also get overridden per call +using the [Rust fmt width](https://doc.rust-lang.org/std/fmt/#width) specifier. + +```ignore +let diagnostic = // ... +println!("{diagnostic:300?}"); // Prints with 300 width instead of the configured value +``` */ #[derive(Debug, Clone)] pub struct GraphicalReportHandler {