CI: Enable clippy on Windows (#8240)

Release Notes:

- N/A
This commit is contained in:
白山風露 2024-02-24 09:23:42 +09:00 committed by GitHub
parent 885ae2d863
commit aef299be3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 53 additions and 44 deletions

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!(