From 3da19e8603c00c02ec7e24ea8910a7c386b09018 Mon Sep 17 00:00:00 2001 From: syn Date: Fri, 14 Feb 2020 13:09:44 +0300 Subject: Improve error handling --- src/backends/python.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backends/python.rs') diff --git a/src/backends/python.rs b/src/backends/python.rs index e3569b1..3ee7b35 100644 --- a/src/backends/python.rs +++ b/src/backends/python.rs @@ -2,7 +2,7 @@ use serde_derive::{ Serialize, Deserialize }; use crate::backends::{ Backend, RunError }; use std::process::{ Command }; use std::path::Path; -use crate::wait::{ wait_child, WaitInfo }; +use crate::wait::{ wait_child, ChildExitStatus }; #[derive(Debug, Serialize, Deserialize, Default)] pub struct PythonBackend { @@ -32,7 +32,7 @@ impl Backend for PythonBackend { } } - fn run(&self, fname: &Path) -> Result { + fn run(&self, fname: &Path) -> Result { let timer = std::time::Instant::now(); let child = Command::new(self.get_interpreter()) -- cgit v1.2.1-18-gbd029