Private
Public Access
1
0

cargo clippy/fix

This commit is contained in:
2025-04-28 16:06:51 -07:00
parent c189e5f9e3
commit e7d837d68c
13 changed files with 43 additions and 61 deletions

View File

@@ -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();

View File

@@ -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 }