summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColvin Wellborn <39858617+colvin@users.noreply.github.com>2020-03-19 21:24:31 -0400
committerGitHub <noreply@github.com>2020-03-19 21:24:31 -0400
commit717271a5967a038e0b53fe95c517592d156b8931 (patch)
tree6eb39c312f3122d1fb281bfb074e1016fa6e0a47
parentf8b1e09699eb96bf1af72ba48b607267c8a39bdc (diff)
downloadshiplift-717271a5967a038e0b53fe95c517592d156b8931.tar.gz
shiplift-717271a5967a038e0b53fe95c517592d156b8931.tar.xz
appease clippy (#225)
-rw-r--r--src/builder.rs4
-rw-r--r--src/lib.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 8e69438..0eecfa1 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -937,14 +937,14 @@ impl ExecContainerOptions {
for (k, v) in &self.params {
body.insert(
- k.to_string(),
+ (*k).to_owned(),
serde_json::to_value(v).map_err(Error::SerdeJsonError)?,
);
}
for (k, v) in &self.params_bool {
body.insert(
- k.to_string(),
+ (*k).to_owned(),
serde_json::to_value(v).map_err(Error::SerdeJsonError)?,
);
}
diff --git a/src/lib.rs b/src/lib.rs
index 14ed170..16e5625 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -815,7 +815,7 @@ impl<'a> Volumes<'a> {
self.docker
.get_json::<VolumesRep>(&path.join("?"))
.map(|volumes: VolumesRep| match volumes.volumes {
- Some(volumes) => volumes.clone(),
+ Some(volumes) => volumes,
None => vec![],
})
}