chore: fix formatting and clippy lints
This commit is contained in:
1 parent
8952bd5399
commit
9d9e959744
35 files changed
+1091
-582
No files matched your search
@@ -93,10 +93,9 @@ fn test_dashboard_route_parity() {
|
||||
"server/src/api/setup.rs"
|
||||
};
|
||||
|
||||
let dashboard_content = std::fs::read_to_string(dashboard_path)
|
||||
.expect("Failed to read dashboard.ts");
|
||||
let setup_content = std::fs::read_to_string(setup_path)
|
||||
.expect("Failed to read setup.rs");
|
||||
let dashboard_content =
|
||||
std::fs::read_to_string(dashboard_path).expect("Failed to read dashboard.ts");
|
||||
let setup_content = std::fs::read_to_string(setup_path).expect("Failed to read setup.rs");
|
||||
|
||||
// 1. Extract routes from setup.rs
|
||||
let mut registered_routes = HashSet::new();
|
||||
@@ -142,7 +141,8 @@ fn test_dashboard_route_parity() {
|
||||
}
|
||||
}
|
||||
if endpoint.is_empty() {
|
||||
let end_idx = rest.find(['"', '`', '\'', ' ', '\n', '?'])
|
||||
let end_idx = rest
|
||||
.find(['"', '`', '\'', ' ', '\n', '?'])
|
||||
.unwrap_or(rest.len());
|
||||
endpoint = rest[..end_idx].to_string();
|
||||
}
|
||||
@@ -153,7 +153,10 @@ fn test_dashboard_route_parity() {
|
||||
cursor = start + 5;
|
||||
}
|
||||
|
||||
assert!(!frontend_endpoints.is_empty(), "No frontend endpoints found in dashboard.ts");
|
||||
assert!(
|
||||
!frontend_endpoints.is_empty(),
|
||||
"No frontend endpoints found in dashboard.ts"
|
||||
);
|
||||
|
||||
for endpoint in &frontend_endpoints {
|
||||
assert!(
|
||||
|
||||
Reference in new issue
Block a user