-
-
Notifications
You must be signed in to change notification settings - Fork 186
Closed
Description
Error types commonly provide From
impls so that they can be constructed by ?
.
I don't want to become a fully general From
derive, but I would be okay with providing a convenient From
impl just for sources. Any From
impl other than from the source should be handwritten for visibility or using something like derive_more.
#[derive(Error, Debug)]
enum EnumError {
Example(#[from] io::Error),
}
drrlvn, hwchen, Alexendoo, joseluis, CAD97 and 9 more
Metadata
Metadata
Assignees
Labels
No labels