clippy pleaser

This commit is contained in:
lda committed 2026-05-03 15:47:16 +07:00 Verified
1 parent 3f8abc1571
commit 7e8e1fca23
8 files changed
+22 -21

No files matched your search

@@ -81,7 +81,7 @@ pub async fn create_known_device(
Err(ApiError::new(
StatusCode::BAD_REQUEST,
"create_known_device_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -105,7 +105,7 @@ pub async fn list_known_devices(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"list_known_devices_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -128,7 +128,7 @@ pub async fn forget_known_device(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"forget_known_device_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -160,7 +160,7 @@ pub async fn attach_device_identifier(
Err(ApiError::new(
StatusCode::BAD_REQUEST,
"attach_device_identifier_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -186,7 +186,7 @@ pub async fn detach_device_identifier(
Err(ApiError::new(
StatusCode::BAD_REQUEST,
"detach_device_identifier_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -213,7 +213,7 @@ pub async fn merge_known_device(
Err(ApiError::new(
StatusCode::BAD_REQUEST,
"merge_known_device_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -122,7 +122,7 @@ pub async fn enroll(
Err(ApiError::new(
StatusCode::UNAUTHORIZED,
"enrollment_rejected",
&err.to_string(),
err.to_string(),
))
}
}
@@ -178,7 +178,7 @@ pub async fn issue_enroll_token(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"issue_enroll_token_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -223,7 +223,7 @@ pub async fn list_enroll_tokens(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"list_enroll_tokens_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -270,7 +270,7 @@ pub async fn revoke_enroll_token(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"revoke_enroll_token_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -325,7 +325,7 @@ pub async fn revoke_agent(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"revoke_agent_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -392,7 +392,7 @@ pub async fn set_agent_nickname(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"set_agent_nickname_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -37,7 +37,7 @@ pub async fn list_fleet_devices(
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"list_fleet_devices_failed",
&err.to_string(),
err.to_string(),
))
}
}
@@ -166,7 +166,7 @@ pub async fn wake_fleet_device(
ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"load_fleet_devices_failed",
&err.to_string(),
err.to_string(),
)
})?;
+1 -1
View File
@@ -34,7 +34,7 @@ pub async fn state_stats(State(state): State<AppState>) -> Result<impl IntoRespo
Err(ApiError::new(
StatusCode::INTERNAL_SERVER_ERROR,
"state_stats_failed",
&err.to_string(),
err.to_string(),
))
}
}