clippy::clone_on_copy

This commit is contained in:
Maan2003 2021-06-13 09:27:19 +05:30
parent 6cc6dee9e9
commit 705f7e6e26
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
7 changed files with 6 additions and 7 deletions

View file

@ -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 {