Skip to content

Commit bfcc47d

Browse files
authored
Fixup building on Windows - add cfg for unix signals. (#182)
1 parent 0fcedd8 commit bfcc47d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: rust/src.axum/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ use std::{
1010
net::{IpAddr, Ipv4Addr, SocketAddr},
1111
time::Duration,
1212
};
13+
use tokio::signal;
14+
#[cfg(unix)]
1315
use tokio::signal::{
14-
self,
1516
unix::{signal, SignalKind},
1617
};
1718
use tower::ServiceBuilder;

0 commit comments

Comments
 (0)