From 34b7ebab896aa90180841e885966d8e4238ff974 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Fri, 10 Jan 2025 11:10:29 -0600 Subject: [PATCH] fix lint errors --- e2e-tests-rust/src/utils.rs | 3 +-- spec-tests/src/utils.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/e2e-tests-rust/src/utils.rs b/e2e-tests-rust/src/utils.rs index 64bf62e6..71de3b50 100644 --- a/e2e-tests-rust/src/utils.rs +++ b/e2e-tests-rust/src/utils.rs @@ -66,8 +66,7 @@ impl LockedPort { /// or is not needed anymore. impl Drop for LockedPort { fn drop(&mut self) { - self.lockfile - .unlock() + fs2::FileExt::unlock(&self.lockfile) .with_context(|| format!("failed to unlock lockfile for port={}", self.port)) .unwrap(); } diff --git a/spec-tests/src/utils.rs b/spec-tests/src/utils.rs index 8ba96c20..f5cadbc0 100644 --- a/spec-tests/src/utils.rs +++ b/spec-tests/src/utils.rs @@ -64,8 +64,7 @@ impl LockedPort { /// or is not needed anymore. impl Drop for LockedPort { fn drop(&mut self) { - self.lockfile - .unlock() + fs2::FileExt::unlock(&self.lockfile) .with_context(|| format!("failed to unlock lockfile for port={}", self.port)) .unwrap(); }