Skip to content

Commit b7f45b3

Browse files
zephyrchienKaranGauswami
authored andcommitted
use correct condition
1 parent faa5e8c commit b7f45b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ struct Cli {
5656
#[arg(long)]
5757
http_basic: Option<String>,
5858

59-
#[cfg(not(target_os = "windows"))]
59+
#[cfg(unix)]
6060
/// Run process in background
6161
#[arg(short, long, default_value_t = false)]
6262
detached: bool,
6363
}
6464

6565
fn main() {
6666
let args = Cli::parse();
67-
#[cfg(not(target_os = "windows"))]
67+
#[cfg(unix)]
6868
{
6969
if args.detached {
7070
let daemonize = daemonize::Daemonize::new();

0 commit comments

Comments
 (0)