File tree 1 file changed +1
-6
lines changed 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ impl<'a> FnSpec<'a> {
230
230
python_name : & mut Option < syn:: Ident > ,
231
231
) -> syn:: Result < ( FnType , bool ) > {
232
232
let name = & sig. ident ;
233
- let mut inputs_iter = sig. inputs . iter ( ) . enumerate ( ) ;
234
233
let parse_receiver = |msg : & ' static str | {
235
234
let first_arg = sig
236
235
. inputs
@@ -260,11 +259,7 @@ impl<'a> FnSpec<'a> {
260
259
( FnType :: ClassAttribute , false )
261
260
}
262
261
Some ( MethodTypeAttribute :: New ) => ( FnType :: FnNew , false ) ,
263
- Some ( MethodTypeAttribute :: ClassMethod ) => {
264
- // Skip first argument for classmethod - always &PyType
265
- let _ = inputs_iter. next ( ) ;
266
- ( FnType :: FnClass , true )
267
- }
262
+ Some ( MethodTypeAttribute :: ClassMethod ) => ( FnType :: FnClass , true ) ,
268
263
Some ( MethodTypeAttribute :: Call ) => (
269
264
FnType :: FnCall ( parse_receiver ( "expected receiver for #[call]" ) ?) ,
270
265
true ,
You can’t perform that action at this time.
0 commit comments