summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-06-29 01:56:18 -0700
committeriximeow <me@iximeow.net>2023-06-29 01:56:46 -0700
commit9f44782ebd991c9a4d3d1d33cb9e6b34ed221b88 (patch)
tree2c74ccc42a3a8b941f2e742b0746eb8d3a0f75f5
parenta031e16693ca563748e64c4fbb3fe9526efdd4a5 (diff)
load-bearing type ascription
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 2cc9bbe..1b9b31b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -469,7 +469,7 @@ async fn handle_commit_status(Path(path): Path<(String, String, String)>, State(
};
let mut artifacts_fragment = String::new();
- let mut artifacts = ctx.dbctx.artifacts_for_job(job.id, None).unwrap()
+ let mut artifacts: Vec<ArtifactRecord> = ctx.dbctx.artifacts_for_job(job.id, None).unwrap()
.into_iter() // HACK: filter out artifacts for previous runs of a job. artifacts should be attached to a run, runs should be distinct from jobs. but i'm sleepy.
.filter(|artifact| artifact.created_time >= job.start_time.unwrap_or_else(crate::io::now_ms))
.collect();