CI: Enable clippy on Windows (#8240)

Release Notes:

- N/A
This commit is contained in:
白山風露
2024-02-23 16:23:42 -08:00
committed by GitHub
parent 885ae2d863
commit aef299be3d
10 changed files with 53 additions and 44 deletions
+6
View File
@@ -12,6 +12,7 @@ use std::{
path::Path,
sync::Arc,
};
#[cfg(unix)]
use tokio::signal::unix::SignalKind;
use tower_http::trace::{self, TraceLayer};
use tracing::Level;
@@ -109,6 +110,7 @@ async fn main() -> Result<()> {
.on_response(trace::DefaultOnResponse::new().level(Level::INFO)),
);
#[cfg(unix)]
axum::Server::from_tcp(listener)?
.serve(app.into_make_service_with_connect_info::<SocketAddr>())
.with_graceful_shutdown(async move {
@@ -127,6 +129,10 @@ async fn main() -> Result<()> {
}
})
.await?;
// todo!("windows")
#[cfg(windows)]
unimplemented!();
}
_ => {
Err(anyhow!(