mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
More manual clippy fixes
This commit is contained in:
parent
b8ddcb0652
commit
eceaf94f19
32 changed files with 141 additions and 159 deletions
|
@ -268,7 +268,7 @@ fn decl_access(
|
|||
};
|
||||
|
||||
let stmt = find_node_at_offset::<ast::LetStmt>(syntax, range.start())?;
|
||||
if let Some(_) = stmt.initializer() {
|
||||
if stmt.initializer().is_some() {
|
||||
let pat = stmt.pat()?;
|
||||
if let ast::Pat::BindPat(it) = pat {
|
||||
if it.name()?.text().as_str() == name {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue