⬆️ Replace LazyStatic with new std::sync::LazyLock

This commit is contained in:
Manuel Cillero 2024-07-27 14:00:27 +02:00
parent 2caa7e924b
commit dfb34d2e36
13 changed files with 67 additions and 62 deletions

View file

@ -1,8 +1,10 @@
use crate::{config, LazyStatic};
use crate::config;
use std::sync::LazyLock;
use figlet_rs::FIGfont;
pub static FIGFONT: LazyStatic<FIGfont> = LazyStatic::new(|| {
pub static FIGFONT: LazyLock<FIGfont> = LazyLock::new(|| {
let slant = include_str!("slant.flf");
let small = include_str!("small.flf");
let speed = include_str!("speed.flf");