From ea3c15f0dd815d76cb084cdd59e5fec3cc6e95d2 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Tue, 10 Aug 2021 17:00:16 +0200 Subject: [PATCH] uucore: use default UError impl for UIoError --- src/uucore/src/lib/mods/error.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/uucore/src/lib/mods/error.rs b/src/uucore/src/lib/mods/error.rs index caccb6ac0..c22b434c4 100644 --- a/src/uucore/src/lib/mods/error.rs +++ b/src/uucore/src/lib/mods/error.rs @@ -367,15 +367,7 @@ impl UIoError { } } -impl UError for UIoError { - fn code(&self) -> i32 { - 1 - } - - fn usage(&self) -> bool { - false - } -} +impl UError for UIoError {} impl Error for UIoError {}