Skip to content

Commit ab56ad5

Browse files
committed
chore(deps): upgrade spin and shlex
1 parent 863aa25 commit ab56ad5

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ edition = "2024"
1919
[workspace.dependencies]
2020
bitflags = "2.11.1"
2121
log = "0.4.29"
22-
spin = "0.10.0"
22+
spin = "0.11.0"
2323
uefi-raw = "0.14.0"
2424

2525
[workspace.dependencies.anyhow]
@@ -46,7 +46,7 @@ version = "0.11.0"
4646
default-features = false
4747

4848
[workspace.dependencies.shlex]
49-
version = "1.3.0"
49+
version = "2.0.1"
5050
default-features = false
5151

5252
[workspace.dependencies.toml]

crates/eficore/src/shim/hook.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::shim::{ShimInput, ShimSupport, ShimVerificationOutput};
22
use anyhow::{Context, Result};
33
use core::slice;
44
use log::warn;
5-
use spin::{Lazy, Mutex};
5+
use spin::{LazyLock, Mutex};
66
use uefi::proto::device_path::FfiDevicePath;
77
use uefi::proto::unsafe_protocol;
88
use uefi::{Guid, guid};
@@ -45,7 +45,8 @@ struct SecurityHookState {
4545

4646
/// Global state for the security hook.
4747
/// This is messy, but it is safe given the mutex.
48-
static GLOBAL_HOOK_STATE: Lazy<Mutex<Option<SecurityHookState>>> = Lazy::new(|| Mutex::new(None));
48+
static GLOBAL_HOOK_STATE: LazyLock<Mutex<Option<SecurityHookState>>> =
49+
LazyLock::new(|| Mutex::new(None));
4950

5051
/// Security hook helper.
5152
pub struct SecurityHook;

0 commit comments

Comments
 (0)