diff options
Diffstat (limited to 'src/response.rs')
| -rw-r--r-- | src/response.rs | 4 |
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() }); |