From 9f44782ebd991c9a4d3d1d33cb9e6b34ed221b88 Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 29 Jun 2023 01:56:18 -0700 Subject: load-bearing type ascription --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 = 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(); -- cgit v1.1