summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/images.rs6
-rw-r--r--src/lib.rs5
2 files changed, 6 insertions, 5 deletions
diff --git a/examples/images.rs b/examples/images.rs
index ab36b3d..de04ab9 100644
--- a/examples/images.rs
+++ b/examples/images.rs
@@ -9,7 +9,11 @@ fn main() {
.list(&Default::default())
.map(|images| {
for i in images {
- println!("{:?}", i.repo_tags.unwrap_or_else(|| vec!["none".into()]));
+ println!(
+ "{} {:?}",
+ i.id,
+ i.repo_tags.unwrap_or_else(|| vec!["none".into()])
+ );
}
})
.map_err(|e| eprintln!("Error: {}", e));
diff --git a/src/lib.rs b/src/lib.rs
index 276d0ff..7fb7dcb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -195,10 +195,7 @@ impl<'a> Images<'a> {
self.docker
.stream_post::<Body>(&path.join("?"), None)
// todo: give this a proper enum type
- .and_then(|r| {
- println!("parsing {:?}", r);
- serde_json::from_slice::<Value>(&r[..]).map_err(Error::from)
- })
+ .and_then(|r| serde_json::from_slice::<Value>(&r[..]).map_err(Error::from))
}
/// exports a collection of named images,