From f6eb2d6e54706156f62fa3f10ddca0640273015d Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Thu, 2 Jan 2020 00:31:34 -0500 Subject: [PATCH] Fix problem on windows with dd --- src/app/process_killer.rs | 4 ++-- 1 file 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()?;