Skip to content

Commit 9591208

Browse files
committed
style: rustfmt the nodes-dashboard additions
Mechanical formatting fix from cargo fmt --all -- --check that I missed locally before pushing. No semantic change.
1 parent a531544 commit 9591208

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

crates/zeroclaw-gateway/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,8 @@ async fn handle_pair(
14151415
.map(String::from)
14161416
};
14171417
let device_name = read_header("X-Device-Name");
1418-
let device_type = read_header("X-Device-Type")
1419-
.or_else(|| infer_device_type_from_ua(user_agent));
1418+
let device_type =
1419+
read_header("X-Device-Type").or_else(|| infer_device_type_from_ua(user_agent));
14201420
let (ua_os_name, ua_os_version) = infer_os_from_ua(user_agent);
14211421
registry.register(
14221422
token_hash,

crates/zeroclaw-gateway/src/nodes.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ impl NodeRegistry {
152152
/// Distinct from `/api/devices` (paired clients of *this* daemon). A node is
153153
/// a separate process — typically another ZeroClaw daemon, or a peripheral
154154
/// device that opted in to advertise tools.
155-
pub async fn list_nodes(
156-
State(state): State<AppState>,
157-
headers: HeaderMap,
158-
) -> impl IntoResponse {
155+
pub async fn list_nodes(State(state): State<AppState>, headers: HeaderMap) -> impl IntoResponse {
159156
if let Err(e) = super::api::require_auth(&state, &headers) {
160157
return e.into_response();
161158
}

0 commit comments

Comments
 (0)