From 717271a5967a038e0b53fe95c517592d156b8931 Mon Sep 17 00:00:00 2001 From: Colvin Wellborn <39858617+colvin@users.noreply.github.com> Date: Thu, 19 Mar 2020 21:24:31 -0400 Subject: appease clippy (#225) --- src/builder.rs | 4 ++-- src/lib.rs | 2 +- 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::(&path.join("?")) .map(|volumes: VolumesRep| match volumes.volumes { - Some(volumes) => volumes.clone(), + Some(volumes) => volumes, None => vec![], }) } -- cgit v1.2.3