Clippy, warnings fix
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
extern crate hyper;
|
||||
extern crate serde;
|
||||
|
||||
use std::{borrow::Cow, default, path::PathBuf, str};
|
||||
use std::{path::PathBuf, str};
|
||||
use log::{error};
|
||||
|
||||
use hyper::{client::ResponseFuture, Body, Client, Method, Request, Uri};
|
||||
use hyper::{Body, Client, Method, Request, Uri};
|
||||
|
||||
use async_trait::async_trait;
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
@@ -101,8 +101,8 @@ impl APIInterface for HTTPAPIClient {
|
||||
impl HTTPAPIClient {
|
||||
pub fn new(base_url: Uri, credentials: Option<Credentials>) -> HTTPAPIClient {
|
||||
HTTPAPIClient {
|
||||
base_url: base_url,
|
||||
credentials: credentials,
|
||||
base_url,
|
||||
credentials,
|
||||
auth_token: Option::None,
|
||||
client: Client::new(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user