From dd1c2d98564bde11e3eb1d87d932d698406dfd1c Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Sun, 22 Dec 2024 14:51:07 +0000 Subject: [PATCH] Import FnPtr --- src/impl_/pymethods.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/impl_/pymethods.rs b/src/impl_/pymethods.rs index e81bc09ac56..9ee5596bc42 100644 --- a/src/impl_/pymethods.rs +++ b/src/impl_/pymethods.rs @@ -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(f: T, g: U) -> bool { f.addr() == g.addr() }