Skip to content

Commit

Permalink
clippy for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Dec 4, 2024
1 parent 869a16c commit 00c7aac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/src/commands/photoshoot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ pub struct Command {
}

#[allow(clippy::too_many_lines)]
/// Execute the photoshoot command
///
/// # Errors
/// [`Error::Io`] if an IO error occurs in the Arma controller
pub fn execute(cmd: &Command) -> Result<Report, Error> {
// Warn the user this is experimental, ask them to confirm
if !dialoguer::Confirm::new()
.with_prompt("This feature is experimental, are you sure you want to continue?")
.interact()
.unwrap()
.unwrap_or_default()
{
return Ok(Report::new());
}
Expand Down Expand Up @@ -75,9 +78,9 @@ pub fn execute(cmd: &Command) -> Result<Report, Error> {

let config = ProjectConfig::from_file(&Path::new(".hemtt").join("project.toml"))?;
let launch = if config.hemtt().launch().contains_key("photoshoot") {
read_config(&config, &[String::from("photoshoot")], &mut report)?
read_config(&config, &[String::from("photoshoot")], &mut report)
} else {
read_config(&config, &[], &mut report)?
read_config(&config, &[], &mut report)
};
let Some(launch) = launch else {
return Ok(report);
Expand Down Expand Up @@ -126,6 +129,7 @@ pub struct Photoshoot {
}

impl Photoshoot {
#[must_use]
pub fn new(command: PathBuf, from: PathBuf) -> Self {
Self {
command,
Expand Down

0 comments on commit 00c7aac

Please sign in to comment.