mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
clippy::redudant_borrow
This commit is contained in:
parent
d6737e55fb
commit
c9b4ac5be4
114 changed files with 285 additions and 285 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue