avoid compiler warnings

This commit is contained in:
Dietmar Maurer
2019-01-30 18:25:37 +01:00
parent 34f956bc25
commit 9f49fe1d5d
18 changed files with 60 additions and 119 deletions

View File

@ -78,13 +78,8 @@ impl HttpClient {
pub fn upload(&self, content_type: &str, body: Body, path: &str) -> Result<Value, Error> {
let client = Client::new();
let url: Uri = format!("http://{}:8007/{}", self.server, path).parse()?;
use http::Request;
use futures::stream::Stream;
let request = Request::builder()
.method("POST")
.uri(url)