diff options
author | softprops <d.tangren@gmail.com> | 2015-08-08 14:40:34 -0400 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2015-08-08 14:40:34 -0400 |
commit | f4866d4f87313a7d8f7f350cf221f5fe7b8a1d71 (patch) | |
tree | 3cf5cceb52b5394e48f0002d664400c3b8d4e550 /src/lib.rs | |
parent | dc5b09589cad44534e61a8818a8d1fb1236a7433 (diff) |
update deps
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2,11 +2,11 @@ //! //! # examples //! -//! ``` +//! ```no_run //! extern crate shiplift; //! //! let mut docker = shiplift::Docker::new(); -//! let mut images = docker.images().list().unwrap(); +//! let images = docker.images().list().unwrap(); //! println!("docker images in stock"); //! for i in images { //! println!("{:?}", i.RepoTags); @@ -29,8 +29,7 @@ use hyper::{ Client, Url }; use hyper::net::{ HttpsConnector, Openssl }; use hyper::method::Method; use openssl::x509::X509FileType; -use openssl::ssl::error::SslError; -use openssl::ssl::{ SslContext, SslMethod, SSL_VERIFY_NONE }; +use openssl::ssl::{ SslContext, SslMethod }; use rep::Image as ImageRep; use rep::{ Change, ContainerDetails, Exit, History, @@ -135,7 +134,7 @@ impl<'a> Images<'a> { let query = names.iter() .map(|n| format!("names={}", n)) .collect::<Vec<String>>() - .connect("&"); + .join("&"); self.docker.stream_get(&format!("/images/get?{}", query)[..]) } |