Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Jan 10, 2025
1 parent d1f9863 commit 34b7eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions e2e-tests-rust/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 1 addition & 2 deletions spec-tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 34b7eba

Please sign in to comment.