From 1261fd5d7ff67c907c72fbbd6959d68bd7c8063b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 22 Aug 2026 21:54:12 +0200 Subject: treewide: Upgrade and update dependencies `rusty_paseto` was left explicitly on v0.8 because the v0.10 is no longer compatible with `rusty_paserk`. --- crates/daemon/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/daemon/src/main.rs') diff --git a/crates/daemon/src/main.rs b/crates/daemon/src/main.rs index d157d075..50a41775 100644 --- a/crates/daemon/src/main.rs +++ b/crates/daemon/src/main.rs @@ -13,7 +13,6 @@ use std::{ use clap::Parser; use eyre::WrapErr; use eyre::{Result, bail}; -use fs4::fs_std::FileExt; use tracing_subscriber::EnvFilter; use crate::{ @@ -142,7 +141,7 @@ impl PidfileGuard { fn acquire(path: &Path) -> Result { let mut file = open_lock_file(path)?; - if !file.try_lock_exclusive()? { + if let Err(fs::TryLockError::WouldBlock) = file.try_lock() { bail!( "daemon already running (pidfile lock busy at {})", path.display() -- cgit v1.3.1