diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-11 21:21:44 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-11 21:21:46 +0100 |
commit | cc8d3a7912203c90a6591e0d178c80f620bd61d0 (patch) | |
tree | 9f42ef5756af3921a83eab6a9f0112ae5d95d2b1 | |
parent | 0b569ea321068b37407ffb5d2efda2eebf927775 (diff) |
Fix: Add type annotation
This adds a type annotation where the shiplift interface got more generic.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r-- | src/endpoint/configured.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<Vec<&str>>()) .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(); |