From 84a67f7b0cee4243d1b1f24f3c59d2aa5b4259ea Mon Sep 17 00:00:00 2001 From: Paul Hummer Date: Sat, 19 May 2018 00:25:21 -0600 Subject: Fix clippy lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ♬ : Midtown / Just Rock and Roll --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 68bf435..dd5bd9e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ impl Pidlock { return Err(PidlockError::LockExists); } }; - file.write(&format!("{}", self.pid).into_bytes()[..]) + file.write_all(&format!("{}", self.pid).into_bytes()[..]) .unwrap(); self.state = PidlockState::Acquired; -- cgit v1.2.3