0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-25 07:28:22 -05:00

🚨 chore: make cargo clippy linter happy (#302)

This commit is contained in:
neon_arch 2023-11-18 21:50:37 +03:00
parent c39d9ff0b0
commit eee2f110b8

View File

@ -13,7 +13,7 @@ use std::fs::read_to_string;
#[get("/")]
pub async fn index(config: web::Data<Config>) -> Result<HttpResponse, Box<dyn std::error::Error>> {
Ok(HttpResponse::Ok().body(
crate::templates::views::index::index(&config.style.colorscheme, &config.style.theme, "").0,
crate::templates::views::index::index(&config.style.colorscheme, &config.style.theme).0,
))
}
@ -62,8 +62,7 @@ pub async fn settings(
&config.style.theme,
&config
.upstream_search_engines
.iter()
.map(|(engine, _)| engine)
.keys()
.collect::<Vec<&String>>(),
)?
.0,