From cc8d3a7912203c90a6591e0d178c80f620bd61d0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 11 Jan 2021 21:21:44 +0100 Subject: Fix: Add type annotation This adds a type annotation where the shiplift interface got more generic. Signed-off-by: Matthias Beyer --- src/endpoint/configured.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index 61bd79d..99253e5 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -245,7 +245,7 @@ impl<'a> PreparedContainer<'a> { trace!("Job resources: Environment variables = {:?}", envs); let builder_opts = shiplift::ContainerOptions::builder(job.image().as_ref()) - .env(envs.iter().map(AsRef::as_ref).collect()) + .env(envs.iter().map(AsRef::as_ref).collect::>()) .cmd(vec!["/bin/bash"]) // we start the container with /bin/bash, but exec() the script in it later .attach_stdin(true) // we have to attach, otherwise bash exits .build(); -- cgit v1.2.3