mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
redundant_locals
This commit is contained in:
parent
692212bbdd
commit
9527e245c9
1 changed files with 0 additions and 3 deletions
|
@ -52,7 +52,6 @@ fn syntax_tree_for_string(token: &SyntaxToken, text_range: TextRange) -> Option<
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::redundant_locals)]
|
||||
fn syntax_tree_for_token(node: &SyntaxToken, text_range: TextRange) -> Option<String> {
|
||||
// Range of the full node
|
||||
let node_range = node.text_range();
|
||||
|
@ -68,8 +67,6 @@ fn syntax_tree_for_token(node: &SyntaxToken, text_range: TextRange) -> Option<St
|
|||
|
||||
let node_len = node_range.len();
|
||||
|
||||
let start = start;
|
||||
|
||||
// We want to cap our length
|
||||
let len = len.min(node_len);
|
||||
|
||||
|
|
Loading…
Reference in a new issue