diff options
author | ClementTsang <clementjhtsang@gmail.com> | 2020-01-02 00:31:34 -0500 |
---|---|---|
committer | ClementTsang <clementjhtsang@gmail.com> | 2020-01-02 00:31:34 -0500 |
commit | f6eb2d6e54706156f62fa3f10ddca0640273015d (patch) | |
tree | 037b33a334c4fffea3e1b8cae870a07e3276ecee | |
parent | b22c07aba27f3d0f72568250139000f36bc1a8b9 (diff) |
Fix problem on windows with dd
-rw-r--r-- | src/app/process_killer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/process_killer.rs b/src/app/process_killer.rs index 34ec0a99..840d2eea 100644 --- a/src/app/process_killer.rs +++ b/src/app/process_killer.rs @@ -1,5 +1,5 @@ /// This file is meant to house (OS specific) implementations on how to kill processes. -use crate::utils::error::{BottomError, Result}; +use crate::utils::error::BottomError; use std::process::Command; // Copied from SO: https://stackoverflow.com/a/55231715 @@ -32,7 +32,7 @@ impl Process { } /// Kills a process, given a PID. -pub fn kill_process_given_pid(pid: u32) -> Result<()> { +pub fn kill_process_given_pid(pid: u32) -> crate::utils::error::Result<()> { if cfg!(target_os = "linux") { // Linux Command::new("kill").arg(pid.to_string()).output()?; |