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
I'm wondering if we'd like to change them to from_err and from_msg respectively, following the Rust API Guidelines. I used new and msg because that's what anyhow and eyre use.
This discussion was converted from issue #2 on October 23, 2022 20:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The two constructors for
RawUnexpected
are:RawUnexpected::new
: takes anError
RawUnexpected::msg
: takes aDisplay + Debug
I'm wondering if we'd like to change them to
from_err
andfrom_msg
respectively, following the Rust API Guidelines. I usednew
andmsg
because that's whatanyhow
andeyre
use.Beta Was this translation helpful? Give feedback.
All reactions