Private
Public Access
1
0

Clippy, warnings fix

This commit is contained in:
2024-06-14 20:26:56 -07:00
parent cabd3b502a
commit da36d9da91
3 changed files with 7 additions and 7 deletions

View File

@@ -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(),
}