summaryrefslogtreecommitdiffstats
path: root/src/builder.rs
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 /src/builder.rs
parentf8b1e09699eb96bf1af72ba48b607267c8a39bdc (diff)
appease clippy (#225)
Diffstat (limited to 'src/builder.rs')
-rw-r--r--src/builder.rs4
1 files changed, 2 insertions, 2 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)?,
);
}