forked from vhaudiquet/rhema-together
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:
1 parent
f21fdfd729
commit
808a78afa8
2 files changed
+12
-7
No files matched your search
+4
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user