clippy::redudant_borrow
This commit is contained in:
@@ -23,7 +23,7 @@ pub(super) fn ra_fixture(
|
||||
literal: ast::String,
|
||||
expanded: SyntaxToken,
|
||||
) -> Option<()> {
|
||||
let active_parameter = ActiveParameter::at_token(&sema, expanded)?;
|
||||
let active_parameter = ActiveParameter::at_token(sema, expanded)?;
|
||||
if !active_parameter.ident().map_or(false, |name| name.text().starts_with("ra_fixture")) {
|
||||
return None;
|
||||
}
|
||||
@@ -124,7 +124,7 @@ pub(super) fn doc_comment(
|
||||
}
|
||||
|
||||
for attr in attributes.by_key("doc").attrs() {
|
||||
let InFile { file_id, value: src } = attrs_source_map.source_of(&attr);
|
||||
let InFile { file_id, value: src } = attrs_source_map.source_of(attr);
|
||||
if file_id != node.file_id {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user