summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/access_token.rs3
-rw-r--r--src/client/common.rs3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/client/access_token.rs b/src/client/access_token.rs
index 07640d5..0f69d9a 100644
--- a/src/client/access_token.rs
+++ b/src/client/access_token.rs
@@ -1,10 +1,9 @@
use anyhow::{anyhow, Result};
use chrono::Utc;
use indexmap::IndexMap;
-use lazy_static::lazy_static;
use parking_lot::RwLock;
-lazy_static! {
+lazy_static::lazy_static! {
static ref ACCESS_TOKENS: RwLock<IndexMap<String, (String, i64)>> =
RwLock::new(IndexMap::new());
}
diff --git a/src/client/common.rs b/src/client/common.rs
index ec1f37d..684d10e 100644
--- a/src/client/common.rs
+++ b/src/client/common.rs
@@ -10,7 +10,6 @@ use crate::{
use anyhow::{bail, Context, Result};
use fancy_regex::Regex;
use indexmap::IndexMap;
-use lazy_static::lazy_static;
use reqwest::{Client as ReqwestClient, RequestBuilder};
use serde::Deserialize;
use serde_json::{json, Value};
@@ -19,7 +18,7 @@ use tokio::sync::mpsc::unbounded_channel;
const MODELS_YAML: &str = include_str!("../../models.yaml");
-lazy_static! {
+lazy_static::lazy_static! {
pub static ref ALL_MODELS: Vec<BuiltinModels> = serde_yaml::from_str(MODELS_YAML).unwrap();
static ref ESCAPE_SLASH_RE: Regex = Regex::new(r"(?<!\\)/").unwrap();
}