From f909d2e7179e911bc2fdeb8eb707dc1297267711 Mon Sep 17 00:00:00 2001 From: Paul Hummer Date: Fri, 15 Dec 2023 21:32:48 -0700 Subject: [PATCH] chore: fix formatting --- src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 992a6fb..029372f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -146,7 +146,10 @@ impl Pidlock { let mut contents = String::new(); if file.read_to_string(&mut contents).is_err() { - warn!("Removing corrupted/invalid pid file at {}", self.path.to_str().unwrap()); + warn!( + "Removing corrupted/invalid pid file at {}", + self.path.to_str().unwrap() + ); fs::remove_file(&self.path).unwrap(); return None; } @@ -161,7 +164,10 @@ impl Pidlock { None } Err(_) => { - warn!("Removing corrupted/invalid pid file at {}", self.path.to_str().unwrap()); + warn!( + "Removing corrupted/invalid pid file at {}", + self.path.to_str().unwrap() + ); fs::remove_file(&self.path).unwrap(); None }