Skip to content

Commit f9cb339

Browse files
committed
backend: fix clippy
1 parent bc0faee commit f9cb339

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/routes/charger/info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub async fn charger_info(
8181
name: charger.name,
8282
configured_port: port,
8383
connected,
84-
firmware_version: firmware_version,
84+
firmware_version,
8585
};
8686

8787
Ok(HttpResponse::Ok().json(info))

backend/src/routes/static_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async fn serve_gzip_static(req: HttpRequest) -> Result<NamedFile> {
3232
#[cfg(debug_assertions)]
3333
let static_serve_from = {
3434
let env = std::env::var("WARP_CHARGER_GIT_URL").unwrap_or_else(|_| "warp-charger".to_string());
35-
format!("{}/firmwares/static_html/", env)
35+
format!("{env}/firmwares/static_html/")
3636
};
3737
#[cfg(not(debug_assertions))]
3838
let static_serve_from = "/static/";

0 commit comments

Comments
 (0)