Skip to content

Commit cdab670

Browse files
committed
fixup suggestion conflict
1 parent 88b589d commit cdab670

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pyo3-macros-backend/src/method.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -669,15 +669,14 @@ impl<'a> FnSpec<'a> {
669669
let arg_names = (0..args.len())
670670
.map(|i| format_ident!("arg_{}", i))
671671
.collect::<Vec<_>>();
672-
let method = if mutable {
673-
syn::Ident::new("extract_pyclass_ref_mut", Span::call_site())
674-
} else {
675-
syn::Ident::new("extract_pyclass_ref", Span::call_site())
676-
let method = syn::Ident::new(if mutable {
677-
"extract_pyclass_ref_mut"
678-
} else {
679-
"extract_pyclass_ref"
680-
}, Span::call_site());
672+
let method = syn::Ident::new(
673+
if mutable {
674+
"extract_pyclass_ref_mut"
675+
} else {
676+
"extract_pyclass_ref"
677+
},
678+
Span::call_site(),
679+
);
681680
quote! {{
682681
let _slf = unsafe { #pyo3_path::impl_::pymethods::BoundRef::ref_from_ptr(py, &_slf) }.to_owned().unbind();
683682
#(let #arg_names = #args;)*

0 commit comments

Comments
 (0)