cargo clippy/fix
This commit is contained in:
@@ -3,7 +3,7 @@ extern crate serde;
|
||||
|
||||
use std::{path::PathBuf, str};
|
||||
|
||||
use crate::api::{TokenStore, InMemoryTokenStore};
|
||||
use crate::api::TokenStore;
|
||||
use hyper::{Body, Client, Method, Request, Uri};
|
||||
|
||||
use async_trait::async_trait;
|
||||
@@ -247,7 +247,8 @@ impl<K: TokenStore + Send + Sync> HTTPAPIClient<K> {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
||||
use crate::api::InMemoryTokenStore;
|
||||
|
||||
#[cfg(test)]
|
||||
fn local_mock_client() -> HTTPAPIClient<InMemoryTokenStore> {
|
||||
let base_url = "http://localhost:5738".parse().unwrap();
|
||||
|
||||
@@ -42,6 +42,12 @@ pub struct InMemoryTokenStore {
|
||||
token: Option<JwtToken>,
|
||||
}
|
||||
|
||||
impl Default for InMemoryTokenStore {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl InMemoryTokenStore {
|
||||
pub fn new() -> Self {
|
||||
Self { token: None }
|
||||
|
||||
Reference in New Issue
Block a user