Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya committed May 12, 2024
1 parent c34104c commit 40f0b7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/solang/document_symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ pub trait ToDocumentSymbol: CodeLocation {
fn to_document_symbol_with_loc(&self, source: &Source) -> DocumentSymbol {
self.with_loc(source, self.to_document_symbol(source))
}
fn try_to_document_symbol_with_loc(&self, source: &Source) -> Option<DocumentSymbol> {
self.try_to_document_symbol(source)
.map(|document_symbol| self.with_loc(source, document_symbol))
}
// fn try_to_document_symbol_with_loc(&self, source: &Source) -> Option<DocumentSymbol> {
// self.try_to_document_symbol(source)
// .map(|document_symbol| self.with_loc(source, document_symbol))
// }
}

impl ToDocumentSymbol for Identifier {
Expand Down

0 comments on commit 40f0b7a

Please sign in to comment.