Skip to content

Commit

Permalink
Remove compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore committed Oct 15, 2023
1 parent f46cda4 commit 67aeb3f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 67aeb3f

Please sign in to comment.