mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 20:09:01 +00:00 
			
		
		
		
	remove a couple of clones
This commit is contained in:
		
							parent
							
								
									6c9cf51c55
								
							
						
					
					
						commit
						573c47c9ba
					
				
					 32 changed files with 71 additions and 90 deletions
				
			
		|  | @ -320,7 +320,7 @@ impl Attr { | |||
|     ) -> impl IntoIterator<Item = Self> { | ||||
|         let is_cfg_attr = self.path.as_ident().is_some_and(|name| *name == sym::cfg_attr); | ||||
|         if !is_cfg_attr { | ||||
|             return smallvec![self.clone()]; | ||||
|             return smallvec![self]; | ||||
|         } | ||||
| 
 | ||||
|         let subtree = match self.token_tree_value() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Matthias Krüger
						Matthias Krüger