Skip to content

Commit 6131915

Browse files
authored
Silence Clippy incompatible_msrv (#122)
* Silence Clippy incompatible_msrv This is due to rust-lang/libc#5015. * Use `clippy::msrv` instead * Formatting
1 parent 62ef494 commit 6131915

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/unix.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,10 @@ extern "C" {
100100
)]
101101
#[cfg_attr(target_os = "aix", link_name = "_Errno")]
102102
#[cfg_attr(target_os = "nto", link_name = "__get_errno_ptr")]
103+
// Newer libc versions re-export `c_int` from `std` which is incompatible
104+
// with Rust < 1.64. However, this is not actually a problem as users can
105+
// use an older `libc`.
106+
// See: https://github.com/rust-lang/libc/pull/5015
107+
#[clippy::msrv = "1.64"]
103108
fn errno_location() -> *mut c_int;
104109
}

0 commit comments

Comments
 (0)