We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0111b commit 8559c03Copy full SHA for 8559c03
src/uu/csplit/src/csplit_error.rs
@@ -12,7 +12,7 @@ use uucore::error::UError;
12
#[derive(Debug, Error)]
13
pub enum CsplitError {
14
#[error("IO error: {}", _0)]
15
- IoError(io::Error),
+ IoError(#[from] io::Error),
16
#[error("{}: line number out of range", ._0.quote())]
17
LineOutOfRange(String),
18
#[error("{}: line number out of range on repetition {}", ._0.quote(), _1)]
@@ -39,12 +39,6 @@ pub enum CsplitError {
39
UError(Box<dyn UError>),
40
}
41
42
-impl From<io::Error> for CsplitError {
43
- fn from(error: io::Error) -> Self {
44
- Self::IoError(error)
45
- }
46
-}
47
-
48
impl From<Box<dyn UError>> for CsplitError {
49
fn from(error: Box<dyn UError>) -> Self {
50
Self::UError(error)
0 commit comments