Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/webserver/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,13 @@ pub async fn run_server(config: &AppConfig, state: AppState) -> anyhow::Result<(
return Ok(());
}
let mut server = HttpServer::new(factory);
#[cfg_attr(
not(target_family = "unix"),
expect(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used expect instead of allow to make sure this is removed when no longer needed.

clippy::redundant_else,
reason = "Conditional compilation produces redundant else when not on unix targets."
)
)]
if let Some(unix_socket) = &config.unix_socket {
log::info!(
"Will start HTTP server on UNIX socket: \"{}\"",
Expand Down
Loading