1
0
Fork 0
forked from wry/wry

all: remove once_cell dependency

This commit is contained in:
Julian Orth 2026-03-30 12:30:26 +02:00
parent c50242562a
commit 41ef632a15
10 changed files with 34 additions and 32 deletions

View file

@ -18,7 +18,6 @@ use {
byteorder::{LittleEndian, ReadBytesExt},
isnt::std_1::primitive::IsntSliceExt,
num_derive::FromPrimitive,
once_cell::sync::Lazy,
std::{
cell::Cell,
convert::TryInto,
@ -29,6 +28,7 @@ use {
mem::MaybeUninit,
rc::Rc,
slice, str,
sync::LazyLock,
time::Duration,
},
thiserror::Error,
@ -46,7 +46,7 @@ const HOME: &str = "HOME";
const HEADER_SIZE: u32 = 16;
pub static DEFAULT_CURSOR_SIZE: Lazy<u32> = Lazy::new(|| {
pub static DEFAULT_CURSOR_SIZE: LazyLock<u32> = LazyLock::new(|| {
if let Ok(size) = env::var(XCURSOR_SIZE)
&& let Ok(val) = size.parse()
{