Skip to content

Commit

Permalink
Allow false positive lints
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Sep 3, 2024
1 parent 301d6e5 commit 4a28796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/os/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ extern "system" {
}

#[cfg(target_os = "macos")]
#[link(name = "CoreFoundation")]
#[link(name = "SystemConfiguration")]
#[link(kind = "framework")]
// FIXME: seemingly false positive for link lint
#[allow(clippy::duplicated_attributes)]
#[link(name = "CoreFoundation", kind = "framework")]
#[link(name = "SystemConfiguration", kind = "framework")]
extern "system" {
fn CFStringGetCString(
the_string: *mut c_void,
Expand Down
2 changes: 1 addition & 1 deletion src/os/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl Target for Os {

let mut version = MaybeUninit::<OsVersionInfoEx>::zeroed();

// FIXME `mem::size_of` seemingly false negative for lint
// FIXME `mem::size_of` seemingly false positive for lint
#[allow(unused_qualifications)]
let version = unsafe {
(*version.as_mut_ptr()).os_version_info_size =
Expand Down

0 comments on commit 4a28796

Please sign in to comment.