style: fix cargo fmt issues in pages.rs and root_landing_tests.rs

This commit is contained in:
thakares committed 2026-06-13 22:29:03 +05:30
1 parent 3c0a1bdd91
commit 02a26cfd94
2 files changed
+12 -10

No files matched your search

+1 -2
View File
@@ -82,7 +82,7 @@ pub async fn resolve_page(
// Serve static root landing page from www/index.html
pub async fn root_landing() -> Response {
let mut target_path = std::path::PathBuf::from("www/index.html");
if !target_path.exists() {
// Search relative to executable
if let Ok(exe_path) = std::env::current_exe() {
@@ -120,4 +120,3 @@ pub async fn root_landing() -> Response {
Err(_) => (StatusCode::NOT_FOUND, "Not Found").into_response(),
}
}