mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-11 12:56:19 +00:00
cargo clippy --fix
This commit is contained in:
parent
423c7dd23a
commit
8ce30264c8
186 changed files with 3056 additions and 3314 deletions
|
@ -626,10 +626,10 @@ mod tests {
|
|||
if let Some(ret_ty) = parent_fn.ret_type() {
|
||||
editor.delete(ret_ty.syntax().clone());
|
||||
|
||||
if let Some(SyntaxElement::Token(token)) = ret_ty.syntax().next_sibling_or_token() {
|
||||
if token.kind().is_trivia() {
|
||||
editor.delete(token);
|
||||
}
|
||||
if let Some(SyntaxElement::Token(token)) = ret_ty.syntax().next_sibling_or_token()
|
||||
&& token.kind().is_trivia()
|
||||
{
|
||||
editor.delete(token);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue