0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-21 21:48:21 -05:00

🚨 chore: make cargo format checks happy (#461)

This commit is contained in:
neon_arch 2023-12-28 21:08:11 +03:00
parent 93afb6b8c9
commit d8943709c7

View File

@ -72,15 +72,15 @@ pub async fn settings(
config: web::Data<Config>, config: web::Data<Config>,
) -> Result<HttpResponse, Box<dyn std::error::Error>> { ) -> Result<HttpResponse, Box<dyn std::error::Error>> {
Ok(HttpResponse::Ok() Ok(HttpResponse::Ok()
.content_type("text/html; charset=utf-8") .content_type("text/html; charset=utf-8")
.body( .body(
crate::templates::views::settings::settings( crate::templates::views::settings::settings(
config.safe_search, config.safe_search,
&config.style.colorscheme, &config.style.colorscheme,
&config.style.theme, &config.style.theme,
&config.style.animation, &config.style.animation,
&config.upstream_search_engines, &config.upstream_search_engines,
)? )?
.0, .0,
)) ))
} }