Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Dec 2, 2019
1 parent 09f7fac commit 01391da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/uri.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::path::Path;

use hyper::Uri as HyperUri;
use http::uri::InvalidUri;
use hyper::Uri as HyperUri;

/// A type which implements `Into` for Hyper's `hyper::Uri`
/// type targeting Unix domain sockets.
Expand Down Expand Up @@ -36,9 +36,7 @@ impl Uri {
let host = hex::encode(socket.as_ref().to_string_lossy().as_bytes());
let host_str = format!("unix://{}:0{}", host, path);
let hyper_uri = host_str.parse()?;
Ok(Uri {
hyper_uri,
})
Ok(Uri { hyper_uri })
}
}

Expand Down

0 comments on commit 01391da

Please sign in to comment.