Skip to content

Commit

Permalink
Merge pull request #4177 from tgross35/fix-new-lint
Browse files Browse the repository at this point in the history
Allow the `unpredictable_function_pointer_comparisons` where needed
  • Loading branch information
tgross35 authored Dec 7, 2024
2 parents 149d392 + 99f4dd9 commit ad7bc97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,8 @@ cfg_if! {
}
}

// FIXME(msrv): suggested method was added in 1.85
#[allow(unpredictable_function_pointer_comparisons)]
impl PartialEq for sigevent {
fn eq(&self, other: &sigevent) -> bool {
self.sigev_value == other.sigev_value
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ cfg_if! {
}
}

// FIXME(msrv): suggested method was added in 1.85
#[allow(unpredictable_function_pointer_comparisons)]
impl PartialEq for __c_anonymous_elf64_auxv_union {
fn eq(&self, other: &__c_anonymous_elf64_auxv_union) -> bool {
unsafe {
Expand Down

0 comments on commit ad7bc97

Please sign in to comment.