mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
fix(lint): use if-let instead of single-arm match in server start
Fixes clippy::single_match_else warning that was blocking CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
148f6c84c2
commit
5acfa46ddd
1 changed files with 5 additions and 6 deletions
|
|
@ -92,12 +92,11 @@ async fn ensure_server_running_with_bind(
|
|||
config: Some(config_path.to_path_buf()),
|
||||
};
|
||||
|
||||
let bind_request = match bind_request {
|
||||
Some(bind_request) => bind_request,
|
||||
None => {
|
||||
let settings = load_settings_config(Some(config_path))?;
|
||||
serve::resolve_bind_request_from_settings(&settings, None)?
|
||||
}
|
||||
let bind_request = if let Some(bind_request) = bind_request {
|
||||
bind_request
|
||||
} else {
|
||||
let settings = load_settings_config(Some(config_path))?;
|
||||
serve::resolve_bind_request_from_settings(&settings, None)?
|
||||
};
|
||||
|
||||
match execute_daemon(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue