Skip to content

Commit

Permalink
Merge pull request #253 from dtolnay/deadflock
Browse files Browse the repository at this point in the history
Work around dead_code warning in flock implementation
  • Loading branch information
dtolnay authored Jan 6, 2024
2 parents 0081291 + b720ee6 commit 0321a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Lock {
// integration test crate.
enum Guard {
NotLocked,
Locked(MutexGuard<'static, ()>),
Locked(#[allow(dead_code)] MutexGuard<'static, ()>),
}

// Best-effort filesystem lock to coordinate different #[test] functions across
Expand Down

0 comments on commit 0321a01

Please sign in to comment.