Skip to content

Commit

Permalink
fix clippy::wildcard_import firing on #[pyclass] (#4707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu authored Nov 14, 2024
1 parent f3eb624 commit 147f7ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyo3-macros-backend/src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2324,11 +2324,11 @@ impl<'a> PyClassImplsBuilder<'a> {
let assertions = if attr.options.unsendable.is_some() {
TokenStream::new()
} else {
quote_spanned! {
cls.span() =>
let assert = quote_spanned! { cls.span() => assert_pyclass_sync::<#cls>(); };
quote! {
const _: () = {
use #pyo3_path::impl_::pyclass::*;
assert_pyclass_sync::<#cls>();
#assert
};
}
};
Expand Down

0 comments on commit 147f7ef

Please sign in to comment.