Skip to content

Commit 0321a01

Browse files
authored
Merge pull request #253 from dtolnay/deadflock
Work around dead_code warning in flock implementation
2 parents 0081291 + b720ee6 commit 0321a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct Lock {
1919
// integration test crate.
2020
enum Guard {
2121
NotLocked,
22-
Locked(MutexGuard<'static, ()>),
22+
Locked(#[allow(dead_code)] MutexGuard<'static, ()>),
2323
}
2424

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

0 commit comments

Comments
 (0)