Skip to content

Commit 666979e

Browse files
committed
fix
1 parent f6c8d3a commit 666979e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/derive-impl/src/pyclass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ pub(crate) fn impl_pyexception_impl(attr: PunctuatedNestedMeta, item: Item) -> R
716716
for nested in &attr {
717717
if let NestedMeta::Meta(Meta::List(MetaList { path, nested, .. })) = nested {
718718
// If we already found the constructor trait, no need to keep looking for it
719-
if !has_constructor_trait && path.is_ident("with") {
719+
if !has_slot_new && path.is_ident("with") {
720720
// Check if Constructor is in the list
721721
for meta in nested {
722722
if let NestedMeta::Meta(Meta::Path(p)) = meta

0 commit comments

Comments
 (0)