Apply rustfmt

The drift was 94 hunks across 4 files, not 94 files as I described it earlier.
muninn-daemon carries almost all of it; sleipnir-daemon needed four lines.

Checked rather than assumed. Ignoring whitespace, the only remaining deltas are
trailing commas rustfmt adds when it wraps an argument list, and braces removed
from single-expression closure bodies. Both are semantics-preserving.
sleipnir-daemon's change is whitespace and nothing else.

Everything except the Unix-only odin-daemon builds; muninn and sleipnir pass 162
tests, with the same pre-existing media-channel failure.

vendor/cultmesh-rs is its own workspace so `cargo fmt` does not reach it, but it
reports no drift of its own.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-04 15:28:32 +02:00
commit 3d939a8523
4 changed files with 728 additions and 270 deletions

View file

@ -1,6 +1,8 @@
use anyhow::{Context, Result};
use cultmesh_rs::{CultMesh, CultMeshNodeOptions};
use odin_core::{MuninnMoveEvidenceTransportHealthRecord, MuninnMoveTrackerHealthRecord, OdinDocuments};
use odin_core::{
MuninnMoveEvidenceTransportHealthRecord, MuninnMoveTrackerHealthRecord, OdinDocuments,
};
use std::{env, path::PathBuf};
fn main() -> Result<()> {
@ -42,16 +44,29 @@ fn main() -> Result<()> {
record.last_observation_at,
record.image_mean_rgb,
record.image_peak_rgb,
record.color_evidence_move_ids.iter().cloned().zip(record.color_evidence_pixel_counts.iter().copied()).collect::<Vec<_>>(),
record
.color_evidence_move_ids
.iter()
.cloned()
.zip(record.color_evidence_pixel_counts.iter().copied())
.collect::<Vec<_>>(),
record.updated_at,
record.detail,
);
}
for record in node.cache().get_all::<MuninnMoveEvidenceTransportHealthRecord>().unwrap_or_default() {
for record in node
.cache()
.get_all::<MuninnMoveEvidenceTransportHealthRecord>()
.unwrap_or_default()
{
println!(
"stream={} produced={} local_admitted={} remote_handoffs={} remote_sends={} updated={}",
record.stream_id, record.produced_frames, record.local_ring_admissions,
record.remote_handoffs, record.remote_sends, record.updated_at,
record.stream_id,
record.produced_frames,
record.local_ring_admissions,
record.remote_handoffs,
record.remote_sends,
record.updated_at,
);
}
Ok(())