0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-10-18 06:22:53 -04: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("/")] #[get("/")]
pub async fn index(config: web::Data<Config>) -> Result<HttpResponse, Box<dyn std::error::Error>> { pub async fn index(config: web::Data<Config>) -> Result<HttpResponse, Box<dyn std::error::Error>> {
Ok(HttpResponse::Ok().body( 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.style.theme,
&config &config
.upstream_search_engines .upstream_search_engines
.iter() .keys()
.map(|(engine, _)| engine)
.collect::<Vec<&String>>(), .collect::<Vec<&String>>(),
)? )?
.0, .0,