Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Jun 27, 2024
1 parent ccee7f7 commit 6704b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use once_cell::sync::Lazy;
use futures_util::StreamExt;
use inotify::{Inotify, WatchMask};
use serde::Deserialize;
Expand All @@ -16,7 +17,6 @@ use std::{
fs::read_to_string,
process::exit,
str::FromStr,
sync::LazyLock,
};

#[derive(Deserialize)]
Expand Down Expand Up @@ -249,7 +249,7 @@ pub fn load(path: &str) -> Result<Config, Error> {
Ok(config)
}

pub static CONFIG: LazyLock<Config> = LazyLock::new(|| {
pub static CONFIG: Lazy<Config> = Lazy::new(|| {
match load("config.json") {
Ok(config) => config,
Err(err) => {
Expand Down

0 comments on commit 6704b73

Please sign in to comment.