diff --git a/src/eyreish/error.rs b/src/eyreish/error.rs index 6b0dc34..07a095a 100644 --- a/src/eyreish/error.rs +++ b/src/eyreish/error.rs @@ -78,8 +78,9 @@ impl Report { /// The boxed type must be thread safe and 'static, so that the `Report` /// will be as well. /// - /// Boxed `Diagnostic`s don't implement `Diagnostic` themselves due to trait coherence issues. - /// This method allows you to create a `Report` from a boxed `Diagnostic`. + /// Boxed `Diagnostic`s don't implement `Diagnostic` themselves due to trait + /// coherence issues. This method allows you to create a `Report` from a + /// boxed `Diagnostic`. #[cfg_attr(track_caller, track_caller)] pub fn new_boxed(error: Box) -> Self { Report::from_boxed(error) diff --git a/src/lib.rs b/src/lib.rs index 44c57a9..ebbb9f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -249,7 +249,7 @@ //! To construct your own simple adhoc error use the [miette!] macro: //! ```rust //! // my_app/lib/my_internal_file.rs -//! use miette::{IntoDiagnostic, Result, WrapErr, miette}; +//! use miette::{miette, IntoDiagnostic, Result, WrapErr}; //! use semver::Version; //! //! pub fn some_tool() -> Result { @@ -572,7 +572,7 @@ //! //! Usage is like so: //! -//! ```rust +//! ```rust,ignore //! miette::set_hook(Box::new(|_| { //! Box::new( //! miette::MietteHandlerOpts::new()