From 35eae3fb4ae12f0ebd84ec44883675a28c3029cf Mon Sep 17 00:00:00 2001 From: David Knaack Date: Mon, 3 Jan 2022 15:14:19 +0100 Subject: [PATCH] refactor(process_control): switch to new API (#3385) --- src/utils.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 8e05ac27..f75546ee 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,4 +1,4 @@ -use process_control::{ChildExt, Timeout}; +use process_control::{ChildExt, Control}; use std::ffi::OsStr; use std::fmt::Debug; use std::fs::read_to_string; @@ -393,7 +393,12 @@ pub fn exec_timeout(cmd: &mut Command, time_limit: Duration) -> Option { let stdout_string = match String::from_utf8(output.stdout) { Ok(stdout) => stdout,