Skip to content

Commit

Permalink
Fixed build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
olexiyb committed Jun 13, 2024
1 parent 7fac1a6 commit 8ebcba2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/command_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ use tokio::process::Child;
use tokio::sync::mpsc::{Receiver, Sender};
use tokio::time::Duration;

const CREATE_NO_WINDOW: u32 = 0x08000000;

///
/// Output logging type
///
Expand Down Expand Up @@ -121,7 +119,10 @@ where
let mut command = tokio::process::Command::new(executable_path);
command.args(args);
#[cfg(target_os = "windows")]
command.creation_flags(CREATE_NO_WINDOW);
{
const CREATE_NO_WINDOW: u32 = 0x08000000;
command.creation_flags(CREATE_NO_WINDOW);
}
command
}

Expand Down

0 comments on commit 8ebcba2

Please sign in to comment.