File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/cairo-lang-semantic/src/expr Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3687,7 +3687,7 @@ fn method_call_expr<'db>(
36873687 // Extracting the possible traits that should be imported, in order to use the method.
36883688 let module_id = ctx. resolver . module_id ;
36893689 let lookup_context = ctx. resolver . impl_lookup_context ( ) ;
3690- let lexpr_clone = lexpr. clone ( ) ;
3690+ let lexpr_stable_ptr = lexpr. stable_ptr ( ) . untyped ( ) ;
36913691 let db = ctx. db ;
36923692 let ( function_id, actual_trait_id, fixed_lexpr, mutability) =
36933693 compute_method_function_call_data (
@@ -3707,7 +3707,7 @@ fn method_call_expr<'db>(
37073707 method_name,
37083708 lookup_context,
37093709 module_id,
3710- lexpr_clone . stable_ptr ( ) . untyped ( ) ,
3710+ lexpr_stable_ptr ,
37113711 )
37123712 } ;
37133713 Some ( CannotCallMethod { ty, method_name, inference_errors, relevant_traits } )
You can’t perform that action at this time.
0 commit comments