summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-12-08 10:36:07 +0300
committersyn <isaqtm@gmail.com>2020-12-08 10:36:07 +0300
commit420e77f90ba94cf9f8d3d0f7ae6395ba3ceda89f (patch)
tree6a2849a35a62d5c0d006f786cd202d8dcdc28396 /src
parent69c1e85be895bbcfcbfed6f3154bd552d46858f4 (diff)
downloadevr-420e77f90ba94cf9f8d3d0f7ae6395ba3ceda89f.tar.gz
Some minor refinements
Diffstat (limited to 'src')
-rw-r--r--src/backends/run_error.rs4
-rw-r--r--src/wait/rusage_ffi.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/run_error.rs b/src/backends/run_error.rs
index 68f0495..6203bbe 100644
--- a/src/backends/run_error.rs
+++ b/src/backends/run_error.rs
@@ -22,8 +22,8 @@ impl From<WaitError> for RunError {
impl std::fmt::Display for RunError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match &*self {
- RunError::IoError(e) => e.fmt(f),
- RunError::WaitError(e) => e.fmt(f)
+ RunError::IoError(e) => write!(f, "I/O error: {}", e),
+ RunError::WaitError(e) => write!(f, "Wait error: {}", e),
}
}
}
diff --git a/src/wait/rusage_ffi.rs b/src/wait/rusage_ffi.rs
index 0a9117a..d77884e 100644
--- a/src/wait/rusage_ffi.rs
+++ b/src/wait/rusage_ffi.rs
@@ -62,4 +62,4 @@ impl Rusage {
unimplemented!();
}
}
-} \ No newline at end of file
+}