style: cargo fmt --all
ci / gates (push) Successful in 6s
ci / frontend (push) Successful in 24s
ci / rust (push) Failing after 2m39s
ci / e2e (push) Has been skipped

Apply rustfmt (toolchain 1.96.0) to satisfy the CI Format check.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
osobh
2026-06-27 11:54:28 -07:00
co-authored by Claude Opus 4.8
parent 8b06ca11e8
commit 96d1409a23
4 changed files with 23 additions and 5 deletions
+11 -2
View File
@@ -10,7 +10,11 @@ use sqlx::{PgPool, Row};
use crate::DbError;
/// Replace a node's reported tool versions with `tools` (tool, version).
pub async fn upsert(pool: &PgPool, node_id: NodeId, tools: &[(String, String)]) -> Result<(), DbError> {
pub async fn upsert(
pool: &PgPool,
node_id: NodeId,
tools: &[(String, String)],
) -> Result<(), DbError> {
for (tool, version) in tools {
sqlx::query(
"INSERT INTO node_tools (node_id, tool, version, updated_at)
@@ -59,6 +63,11 @@ pub async fn all_latest(pool: &PgPool) -> Result<HashMap<String, String>, DbErro
.await?;
Ok(rows
.into_iter()
.map(|r| (r.get::<String, _>("tool"), r.get::<String, _>("latest_version")))
.map(|r| {
(
r.get::<String, _>("tool"),
r.get::<String, _>("latest_version"),
)
})
.collect())
}