Skip to content

Commit 9db3c1b

Browse files
cakebakersylvestre
authored andcommitted
du: remove unnecessary impl of code()
1 parent 0a9fc3e commit 9db3c1b

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/uu/du/src/du.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -752,16 +752,7 @@ enum DuError {
752752
InvalidGlob(String),
753753
}
754754

755-
impl UError for DuError {
756-
fn code(&self) -> i32 {
757-
match self {
758-
Self::InvalidMaxDepthArg(_)
759-
| Self::SummarizeDepthConflict(_)
760-
| Self::InvalidTimeStyleArg(_)
761-
| Self::InvalidGlob(_) => 1,
762-
}
763-
}
764-
}
755+
impl UError for DuError {}
765756

766757
/// Read a file and return each line in a vector of String
767758
fn file_as_vec(filename: impl AsRef<Path>) -> Vec<String> {

0 commit comments

Comments
 (0)