Skip to content

Commit

Permalink
remove unnecessary ref mut
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-konovalenko committed Feb 9, 2021
1 parent 9c29323 commit 7d76bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyo3-macros-backend/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub fn add_fn_to_module(
syn::FnArg::Receiver(_) => {
bail_spanned!(input.span() => "unexpected receiver for #[pyfn]");
}
syn::FnArg::Typed(ref mut cap) => {
syn::FnArg::Typed(cap) => {
if pyfn_attrs.pass_module && i == 0 {
if let syn::Type::Reference(tyref) = cap.ty.as_ref() {
if let syn::Type::Path(typath) = tyref.elem.as_ref() {
Expand Down

0 comments on commit 7d76bc7

Please sign in to comment.