@@ -29,9 +29,7 @@ impl<'a> FnArg<'a> {
2929 /// Transforms a rust fn arg parsed with syn into a method::FnArg
3030 pub fn parse ( arg : & ' a mut syn:: FnArg ) -> Result < Self > {
3131 match arg {
32- syn:: FnArg :: Receiver ( recv) => {
33- bail_spanned ! ( recv. span( ) => "unexpected receiver" )
34- } // checked in parse_fn_type
32+ syn:: FnArg :: Receiver ( recv) => bail_spanned ! ( recv. span( ) => "unexpected receiver" ) , // checked in parse_fn_type
3533 syn:: FnArg :: Typed ( cap) => {
3634 if let syn:: Type :: ImplTrait ( _) = & * cap. ty {
3735 bail_spanned ! ( cap. ty. span( ) => IMPL_TRAIT_ERR ) ;
@@ -101,9 +99,7 @@ impl FnType {
10199 cls. expect ( "no class given for Fn with a \" self\" receiver" ) ,
102100 error_mode,
103101 ) ,
104- FnType :: FnNew | FnType :: FnStatic | FnType :: ClassAttribute => {
105- quote ! ( )
106- }
102+ FnType :: FnNew | FnType :: FnStatic | FnType :: ClassAttribute => quote ! ( ) ,
107103 FnType :: FnClass => {
108104 quote ! {
109105 let _slf = :: pyo3:: types:: PyType :: from_type_ptr( _py, _slf as * mut :: pyo3:: ffi:: PyTypeObject ) ;
@@ -352,7 +348,8 @@ impl<'a> FnSpec<'a> {
352348 parse_method_receiver ( first_arg)
353349 } ;
354350
355- #[ allow( clippy:: manual_strip) ] // for strip_prefix replacement supporting rust < 1.45
351+ #[ allow( clippy:: manual_strip) ]
352+ // for strip_prefix replacement supporting rust < 1.45
356353 // strip get_ or set_
357354 let strip_fn_name = |prefix : & ' static str | {
358355 let ident = name. unraw ( ) . to_string ( ) ;
0 commit comments