diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-01-13 09:20:30 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-01-15 23:21:39 +0100 |
commit | 50a95076d4704c0e9fef611118e9529403e61d2e (patch) | |
tree | 59b002cb517b2dcf7c83ef9c9d2a44bda3b6efa4 /src/job | |
parent | 8f2093f07b394424f9dfcd60a8246c3535e8da6f (diff) |
Fix clippy: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/job')
-rw-r--r-- | src/job/runnable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/job/runnable.rs b/src/job/runnable.rs index ef072e8..5c10d06 100644 --- a/src/job/runnable.rs +++ b/src/job/runnable.rs @@ -129,7 +129,7 @@ impl RunnableJob { /// Helper function to collect a list of resources and the result of package.environment() into /// a Vec of environment variables - fn env_resources(resources: &Vec<JobResource>, pkgenv: Option<&HashMap<EnvironmentVariableName, String>>) + fn env_resources(resources: &[JobResource], pkgenv: Option<&HashMap<EnvironmentVariableName, String>>) -> Vec<(EnvironmentVariableName, String)> { let iter = resources |