You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be nice to have a prelude module that contains the macros, Report, and WrapErr. This way use eyre::prelude::*; will be equivalent to
use eyre::{bail, ensure, eyre,Report,WrapErr};
as those are the items I typically want to import everywhere I use eyre (more specifically I only import the macros I use so I don't get warnings, but that the means the other macros aren't available when I want them).
Notably this should not include Result, as taking over the bare Result identifier without explicitly importing it would be surprising.
The text was updated successfully, but these errors were encountered:
It might be nice to have a
prelude
module that contains the macros,Report
, andWrapErr
. This wayuse eyre::prelude::*;
will be equivalent toas those are the items I typically want to import everywhere I use eyre (more specifically I only import the macros I use so I don't get warnings, but that the means the other macros aren't available when I want them).
Notably this should not include
Result
, as taking over the bareResult
identifier without explicitly importing it would be surprising.The text was updated successfully, but these errors were encountered: