No longer gate unsupported file locking behind Linux as OS

This commit is contained in:
Marco Köpcke 2022-08-16 12:46:47 +02:00
parent 585cf31990
commit b0c9586f4c

View File

@ -378,7 +378,6 @@ mod sys {
// For targets in which they are the same, the duplicate pattern causes a warning.
#[allow(unreachable_patterns)]
Some(libc::ENOTSUP | libc::EOPNOTSUPP) => true,
#[cfg(any(target_os = "linux", target_os = "android"))]
Some(libc::ENOSYS) => true,
_ => false,
}