aboutsummaryrefslogtreecommitdiff
path: root/src/response.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-18 01:47:25 -0700
committerFuwn <[email protected]>2023-04-18 01:47:25 -0700
commitcfeb34870d78939133222ba61e6a1a5b82d78364 (patch)
tree260c3f2c46283ade8083c93b0cc9e754e8c5fe97 /src/response.rs
parentfeat(news): add a new news entry (diff)
downloadlocus-cfeb34870d78939133222ba61e6a1a5b82d78364.tar.xz
locus-cfeb34870d78939133222ba61e6a1a5b82d78364.zip
refactor(src): drop once_cell dependency for standard library
Diffstat (limited to 'src/response.rs')
-rw-r--r--src/response.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/response.rs b/src/response.rs
index 5661938..a8f8848 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -15,9 +15,9 @@
// Copyright (C) 2022-2023 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-use once_cell::sync::Lazy;
+use std::sync::LazyLock;
-static QUOTES: Lazy<Vec<String>> = Lazy::new(|| {
+static QUOTES: LazyLock<Vec<String>> = LazyLock::new(|| {
serde_json::from_str(include_str!("../content/json/quotes.json")).unwrap()
});