summaryrefslogtreecommitdiffstats
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/util.rs b/src/util.rs
index 838f1d3..174f7d8 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -9,16 +9,6 @@ use std::{
use nix::sys::wait;
-pub trait ToIOResult<T> {
- fn to_io_result(self) -> Result<T>;
-}
-
-impl<T> ToIOResult<T> for nix::Result<T> {
- fn to_io_result(self) -> Result<T> {
- self.map_err(From::from)
- }
-}
-
pub trait Checkable {
fn check(&self) -> Result<()>;
}