From 67aeb3fb5d7c10ffa99efb707080ea9eb63d769b Mon Sep 17 00:00:00 2001 From: Kirill Bulatov <mail4score@gmail.com> Date: Sun, 15 Oct 2023 22:04:43 +0300 Subject: [PATCH] Remove compilation warnings --- src/main.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 28c9817..a74a878 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,11 +4,10 @@ use log::{debug, info}; use serde_derive::Deserialize; use std::{ collections::HashMap, - env, - fs::{self}, + env, fs, io::Write, path::{Path, PathBuf}, - process::{Command, ExitStatus, Stdio}, + process::{Command, Stdio}, thread, time, }; use structopt::StructOpt; @@ -584,12 +583,13 @@ impl Build { let status = { let mut cmd = Command::new("PlaydateSimulator"); cmd.arg(&pdx_path); - cmd.status().or_else(|_| -> Result<ExitStatus, Error> { - info!("falling back on SDK path"); - cmd = Command::new(playdate_sdk_path()?.join("bin").join("PlaydateSimulator")); - cmd.arg(&pdx_path); - Ok(cmd.status()?) - })? + cmd.status() + .or_else(|_| -> Result<process::ExitStatus, Error> { + info!("falling back on SDK path"); + cmd = Command::new(playdate_sdk_path()?.join("bin").join("PlaydateSimulator")); + cmd.arg(&pdx_path); + Ok(cmd.status()?) + })? }; if !status.success() {