Skip to content

Commit f5f47be

Browse files
authored
hygiene: normal macros should generate $crate (#2021)
1 parent a0d3ab0 commit f5f47be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/class/impl_.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ macro_rules! define_pyclass_binary_operator_slot {
275275
_other: *mut $crate::ffi::PyObject,
276276
) -> *mut $crate::ffi::PyObject {
277277
$crate::callback::handle_panic(|py| {
278-
use ::pyo3::class::impl_::*;
278+
use $crate::class::impl_::*;
279279
let collector = PyClassImplCollector::<$cls>::new();
280280
let lhs_result = collector.$lhs(py, _slf, _other)?;
281281
if lhs_result == $crate::ffi::Py_NotImplemented() {
@@ -467,7 +467,7 @@ macro_rules! generate_pyclass_pow_slot {
467467
_mod: *mut $crate::ffi::PyObject,
468468
) -> *mut $crate::ffi::PyObject {
469469
$crate::callback::handle_panic(|py| {
470-
use ::pyo3::class::impl_::*;
470+
use $crate::class::impl_::*;
471471
let collector = PyClassImplCollector::<$cls>::new();
472472
let lhs_result = collector.__pow__(py, _slf, _other, _mod)?;
473473
if lhs_result == $crate::ffi::Py_NotImplemented() {

0 commit comments

Comments
 (0)