@@ -864,7 +864,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
864864 definition. kind( ) ,
865865 clang_sys:: CXCursor_TemplateTypeParameter
866866 ) ;
867- self . type_params . get ( definition) . cloned ( )
867+ self . type_params . get ( definition) . copied ( )
868868 }
869869
870870 // TODO: Move all this syntax crap to other part of the code.
@@ -1317,7 +1317,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
13171317 . as_ref ( )
13181318 . unwrap ( )
13191319 . get ( & id)
1320- . cloned ( )
1320+ . copied ( )
13211321 . unwrap_or ( SizednessResult :: ZeroSized )
13221322 }
13231323
@@ -1341,7 +1341,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
13411341 . as_ref ( )
13421342 . unwrap ( )
13431343 . get ( & id. into ( ) )
1344- . cloned ( )
1344+ . copied ( )
13451345 . unwrap_or ( HasVtableResult :: No )
13461346 }
13471347
@@ -1541,7 +1541,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
15411541 & self ,
15421542 definition : clang:: Cursor ,
15431543 ) -> Option < ItemId > {
1544- self . semantic_parents . get ( & definition) . cloned ( )
1544+ self . semantic_parents . get ( & definition) . copied ( )
15451545 }
15461546
15471547 /// Given a cursor pointing to the location of a template instantiation,
@@ -1589,7 +1589,6 @@ If you encounter an error missing from this list, please file an issue or a PR!"
15891589 self . currently_parsed_types ( )
15901590 . iter ( )
15911591 . find ( |partial_ty| * partial_ty. decl ( ) == referenced)
1592- . cloned ( )
15931592 } )
15941593 . and_then ( |template_decl| {
15951594 let num_template_params =
@@ -1861,7 +1860,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
18611860 . usr ( )
18621861 . and_then ( |usr| self . types . get ( & TypeKey :: Usr ( usr) ) )
18631862 } )
1864- . cloned ( )
1863+ . copied ( )
18651864 }
18661865
18671866 /// Looks up for an already resolved type, either because it's builtin, or
@@ -2865,7 +2864,7 @@ If you encounter an error missing from this list, please file an issue or a PR!"
28652864 . as_ref ( )
28662865 . unwrap ( )
28672866 . get ( & id)
2868- . cloned ( )
2867+ . copied ( )
28692868 . unwrap_or ( CanDerive :: Yes )
28702869 }
28712870
0 commit comments