Skip to content
Myr

Merge pull request #38 from dtolnay/format_err

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Provide format_err macro

authored by David Tolnay · committed by GitHub · parents 791754e, bd0733f · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:src/lib.rs+2 added
180 unmodified lines
181use std::error::Error as StdError;182use std::fmt::Display;183use std::mem::ManuallyDrop;184185pub use anyhow as format_err;186187/// The `Error` type, a wrapper around a dynamic error type.188///189/// `Error` works a lot like `Box<dyn std::error::Error>`, but with these190/// differences:
257 unmodified lines