mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
clippy::clone_on_copy
This commit is contained in:
parent
6cc6dee9e9
commit
705f7e6e26
7 changed files with 6 additions and 7 deletions
|
@ -131,7 +131,7 @@ pub(crate) fn hover(
|
|||
let (docs, doc_mapping) = attributes.docs_with_rangemap(db)?;
|
||||
let (idl_range, link, ns) =
|
||||
extract_definitions_from_markdown(docs.as_str()).into_iter().find_map(|(range, link, ns)| {
|
||||
let InFile { file_id, value: range } = doc_mapping.map(range.clone())?;
|
||||
let InFile { file_id, value: range } = doc_mapping.map(range)?;
|
||||
if file_id == position.file_id.into() && range.contains(position.offset) {
|
||||
Some((range, link, ns))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue