File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub struct ParsedMethod {
44
44
45
45
#[ derive( Debug , Clone , Copy ) ]
46
46
pub enum MethodType {
47
- Receiver { mutable : bool } ,
47
+ Receiver ,
48
48
ReceiverClassObject ,
49
49
Static ,
50
50
}
@@ -169,7 +169,7 @@ pub fn parser(
169
169
}
170
170
} else {
171
171
let this = match method_type {
172
- MethodType :: Receiver { .. } => quote ! { this. } ,
172
+ MethodType :: Receiver => quote ! { this. } ,
173
173
MethodType :: ReceiverClassObject | MethodType :: Static => quote ! { Self :: } ,
174
174
} ;
175
175
@@ -302,9 +302,7 @@ fn build_args(
302
302
if receiver. reference . is_none ( ) {
303
303
bail ! ( "`self` parameter must be a reference." ) ;
304
304
}
305
- Ok ( Arg :: Receiver ( MethodType :: Receiver {
306
- mutable : receiver. mutability . is_some ( ) ,
307
- } ) )
305
+ Ok ( Arg :: Receiver ( MethodType :: Receiver ) )
308
306
}
309
307
FnArg :: Typed ( ty) => {
310
308
let mut this = false ;
You can’t perform that action at this time.
0 commit comments