fix: lifetime notation (#798)

This commit is contained in:
Valerio Ageno
2025-07-19 17:49:49 +02:00
committed by GitHub
parent 5990cf3d27
commit a1f5811eda
12 changed files with 49 additions and 54 deletions
+2 -2
View File
@@ -26,14 +26,14 @@ pub async fn vite_reverse_proxy(
let query_string = query
.0
.iter()
.map(|(k, v)| format!("{}={}", k, v))
.map(|(k, v)| format!("{k}={v}"))
.collect::<Vec<_>>()
.join("&");
let query_string = if query_string.is_empty() {
String::new()
} else {
format!("?{}", query_string)
format!("?{query_string}")
};
match client