test: build config values with struct update

Clippy rejects assigning fields after Config::default(). Initialize the preview and public URL fields in the struct literal instead. No behavior changes.
This commit is contained in:
vhaudiquet committed 2026-11-28 10:36:17 +01:00
1 parent f21fdfd729
commit 808a78afa8
2 files changed
+12 -7

No files matched your search

+4 -3
View File
@@ -250,9 +250,10 @@ mod tests {
use axum::http::{HeaderMap, HeaderValue, header};
fn config() -> crate::config::Config {
let mut config = crate::config::Config::default();
config.public_url = "http://10.4.1.222:7800".into();
config
crate::config::Config {
public_url: "http://10.4.1.222:7800".into(),
..Default::default()
}
}
fn headers(origin: &str, host: &str) -> HeaderMap {