Skip to content

Commit

Permalink
Added missing cfg flags for impl of Flockable on File.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderBlitz committed Nov 19, 2023
1 parent 32443fa commit 81ca0e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ impl<T: Flockable> Flock<T> {
}

// Safety: `File` is not [std::clone::Clone].
#[cfg(not(any(target_os = "redox", target_os = "solaris")))]
unsafe impl Flockable for std::fs::File {}
}

Expand Down

0 comments on commit 81ca0e5

Please sign in to comment.