From 2efb030c3d543b19cc358d47205c11123933a180 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 6 Mar 2020 13:48:25 +0100 Subject: Remove unused ExitUnwrap trait Signed-off-by: Matthias Beyer --- lib/core/libimagerror/src/exit.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/core/libimagerror/src/exit.rs b/lib/core/libimagerror/src/exit.rs index dd3c653b..3df64b2b 100644 --- a/lib/core/libimagerror/src/exit.rs +++ b/lib/core/libimagerror/src/exit.rs @@ -55,13 +55,3 @@ impl Error for ExitCode { } } -pub trait ExitUnwrap { - fn unwrap_or_exit(self) -> T; -} - -impl> ExitUnwrap for Result { - fn unwrap_or_exit(self) -> T { - self.map_err(Into::into).unwrap_or_else(|e| ::std::process::exit(e.0)) - } -} - -- cgit v1.2.3