Spaces:
Running
Running
neon_arch
commited on
Commit
Β·
eee2f11
1
Parent(s):
c39d9ff
π¨ chore: make cargo clippy linter happy (#302)
Browse files- src/server/router.rs +2 -3
src/server/router.rs
CHANGED
@@ -13,7 +13,7 @@ use std::fs::read_to_string;
|
|
13 |
#[get("/")]
|
14 |
pub async fn index(config: web::Data<Config>) -> Result<HttpResponse, Box<dyn std::error::Error>> {
|
15 |
Ok(HttpResponse::Ok().body(
|
16 |
-
crate::templates::views::index::index(&config.style.colorscheme, &config.style.theme
|
17 |
))
|
18 |
}
|
19 |
|
@@ -62,8 +62,7 @@ pub async fn settings(
|
|
62 |
&config.style.theme,
|
63 |
&config
|
64 |
.upstream_search_engines
|
65 |
-
.
|
66 |
-
.map(|(engine, _)| engine)
|
67 |
.collect::<Vec<&String>>(),
|
68 |
)?
|
69 |
.0,
|
|
|
13 |
#[get("/")]
|
14 |
pub async fn index(config: web::Data<Config>) -> Result<HttpResponse, Box<dyn std::error::Error>> {
|
15 |
Ok(HttpResponse::Ok().body(
|
16 |
+
crate::templates::views::index::index(&config.style.colorscheme, &config.style.theme).0,
|
17 |
))
|
18 |
}
|
19 |
|
|
|
62 |
&config.style.theme,
|
63 |
&config
|
64 |
.upstream_search_engines
|
65 |
+
.keys()
|
|
|
66 |
.collect::<Vec<&String>>(),
|
67 |
)?
|
68 |
.0,
|