mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 12:04:43 +00:00 
			
		
		
		
	minor: New clippy lints
This commit is contained in:
		
							parent
							
								
									6725e046df
								
							
						
					
					
						commit
						4b6007115a
					
				
					 92 changed files with 180 additions and 201 deletions
				
			
		|  | @ -226,9 +226,8 @@ impl HasDocs for hir::AssocItem { | |||
| 
 | ||||
| impl HasDocs for hir::ExternCrateDecl { | ||||
|     fn docs(self, db: &dyn HirDatabase) -> Option<Documentation> { | ||||
|         let crate_docs = | ||||
|             docs_from_attrs(&self.resolved_crate(db)?.root_module().attrs(db)).map(String::from); | ||||
|         let decl_docs = docs_from_attrs(&self.attrs(db)).map(String::from); | ||||
|         let crate_docs = docs_from_attrs(&self.resolved_crate(db)?.root_module().attrs(db)); | ||||
|         let decl_docs = docs_from_attrs(&self.attrs(db)); | ||||
|         match (decl_docs, crate_docs) { | ||||
|             (None, None) => None, | ||||
|             (Some(decl_docs), None) => Some(decl_docs), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth