Skip to content

Commit

Permalink
Import FnPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
clin1234 authored Dec 22, 2024
1 parent 0d03466 commit dd1c2d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/impl_/pymethods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use std::ptr::null_mut;
use std::ptr::fn_addr_eq;

#[cfg(not(feature = "nightly"))]
use std::marker::FnPtr;
pub fn fn_addr_eq<T: FnPtr, U: FnPtr>(f: T, g: U) -> bool {
f.addr() == g.addr()
}
Expand Down

0 comments on commit dd1c2d9

Please sign in to comment.