Skip to content

Commit

Permalink
Merge pull request #9 from Emilgardis/fix-ci
Browse files Browse the repository at this point in the history
satisfy lints
  • Loading branch information
Ryex authored Apr 3, 2024
2 parents 85c2e44 + 8dbb57c commit 057678f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::process::Command;

use clap::{ArgMatches, Parser, Subcommand};
use clap::{Parser, Subcommand};

/// Helper program to start ic10emu and website.
///
Expand Down Expand Up @@ -46,8 +46,6 @@ enum Error {
BuildFailed(String, String, std::process::ExitStatus),
#[error("failed to run command `{0}`")]
Command(String, #[source] std::io::Error),
#[error("IO failed {0}")]
Io(String, #[source] std::io::Error),
}

impl std::fmt::Debug for Error {
Expand Down Expand Up @@ -125,6 +123,7 @@ fn build<P: AsRef<std::ffi::OsStr> + std::fmt::Debug + std::fmt::Display>(
cmd.arg("--dev");
}
cmd.arg(package);
cmd.args(rest);
let status = cmd
.status()
.map_err(|e| Error::Command(format!("{}", cmd.get_program().to_string_lossy()), e))?;
Expand Down

0 comments on commit 057678f

Please sign in to comment.