summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorNurrl <Thecakeisplaying@gmail.com>2018-10-13 23:08:40 +0200
committerdoug tangren <d.tangren@gmail.com>2018-10-13 17:08:40 -0400
commitdf93b62adebd7c2e99d0b82c33d7b68077d09015 (patch)
tree6bac651041b93671332f7ff383a656718ddafb1a /src/lib.rs
parent9aca748b0c0079d5e8b429709c6e510606a76756 (diff)
Fixed error causing bad json to be sent to Docker API. (#124)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4869513..e3a848c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -524,7 +524,7 @@ impl<'a> Containers<'a> {
&self,
opts: &ContainerOptions,
) -> Result<ContainerCreateInfo> {
- let data = serde_json::to_string(opts)?;
+ let data = opts.serialize()?;
let bytes = data.into_bytes();
let mut path = vec!["/containers/create".to_owned()];