Initialize ContainerRecord with build_started_at in one expression
Clippy's `field_reassign_with_default` lint flagged the
default-then-assign pattern in `build_executor_runtime`. The struct
literal with `..Default::default()` is the suggested form and reads
better.
Assisted-by: Claude Opus 4.7 via Claude Code
diff --git a/src/ci/run.rs b/src/ci/run.rs
index 11c933a..a3bf7a1 100644
--- a/src/ci/run.rs
+++ b/src/ci/run.rs
@@ -448,10 +448,11 @@ impl Run {
return Err(Error::DockerUnavailable);
}
- let mut record = ContainerRecord::default();
-
// Build phase.
- record.build_started_at = Some(Timestamp::now());
+ let mut record = ContainerRecord {
+ build_started_at: Some(Timestamp::now()),
+ ..Default::default()
+ };
self.write_container_record(&record)?;
let dockerfile = workspace.join(".quire/Dockerfile");