clippy::clone_on_copy
This commit is contained in:
@@ -43,7 +43,7 @@ pub(crate) fn goto_definition(
|
||||
let (docs, doc_mapping) = attributes.docs_with_rangemap(db)?;
|
||||
let (_, link, ns) =
|
||||
extract_definitions_from_markdown(docs.as_str()).into_iter().find(|(range, ..)| {
|
||||
doc_mapping.map(range.clone()).map_or(false, |InFile { file_id, value: range }| {
|
||||
doc_mapping.map(*range).map_or(false, |InFile { file_id, value: range }| {
|
||||
file_id == position.file_id.into() && range.contains(position.offset)
|
||||
})
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user