This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,6 @@ impl InferenceContext<'_> {
233233 } ;
234234 let mut expectations_iter = expectations
235235 . iter ( )
236- . cloned ( )
237236 . map ( |a| a. assert_ty_ref ( Interner ) . clone ( ) )
238237 . chain ( repeat_with ( || self . table . new_type_var ( ) ) ) ;
239238
Original file line number Diff line number Diff line change @@ -3673,7 +3673,6 @@ impl Closure {
36733673 let ( captures, _) = infer. closure_info ( & self . id ) ;
36743674 captures
36753675 . iter ( )
3676- . cloned ( )
36773676 . map ( |capture| Type {
36783677 env : db. trait_environment_for_body ( owner) ,
36793678 ty : capture. ty ( & self . subst ) ,
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ pub(crate) fn goto_definition(
7979 return Some ( vec ! [ x] ) ;
8080 }
8181
82- if let Some ( x) = try_lookup_macro_def_in_macro_use ( sema, token. clone ( ) ) {
82+ if let Some ( x) = try_lookup_macro_def_in_macro_use ( sema, token) {
8383 return Some ( vec ! [ x] ) ;
8484 }
8585 }
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ impl FieldOrTupleIdx {
6969 . as_str ( )
7070 . map ( |s| s. to_owned ( ) )
7171 . unwrap_or_else ( || format ! ( ".{}" , f. name( db) . as_tuple_index( ) . unwrap( ) ) ) ,
72- FieldOrTupleIdx :: TupleIdx ( i) => format ! ( ".{i}" ) . to_owned ( ) ,
72+ FieldOrTupleIdx :: TupleIdx ( i) => format ! ( ".{i}" ) ,
7373 }
7474 }
7575}
@@ -203,7 +203,7 @@ pub(crate) fn view_memory_layout(
203203
204204 let mut nodes = vec ! [ MemoryLayoutNode {
205205 item_name,
206- typename: typename . clone ( ) ,
206+ typename,
207207 size: layout. size( ) ,
208208 offset: 0 ,
209209 alignment: layout. align( ) ,
You can’t perform that action at this time.
0 commit comments