mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Remove unneeded variables
This commit is contained in:
parent
77bb9a56f1
commit
b8b271d984
1 changed files with 2 additions and 4 deletions
|
@ -364,8 +364,7 @@ impl ast::MatchArmList {
|
||||||
Some(s) => s,
|
Some(s) => s,
|
||||||
None => start.clone(),
|
None => start.clone(),
|
||||||
};
|
};
|
||||||
let res = self.replace_children(start..=end, &mut iter::empty());
|
self.replace_children(start..=end, &mut iter::empty())
|
||||||
res
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
@ -411,8 +410,7 @@ impl ast::MatchArmList {
|
||||||
let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
|
let ws = tokens::WsBuilder::new(&format!("\n{}", indent));
|
||||||
let to_insert: ArrayVec<[SyntaxElement; 2]> =
|
let to_insert: ArrayVec<[SyntaxElement; 2]> =
|
||||||
[ws.ws().into(), item.syntax().clone().into()].into();
|
[ws.ws().into(), item.syntax().clone().into()].into();
|
||||||
let res = self.insert_children(position, to_insert);
|
self.insert_children(position, to_insert)
|
||||||
res
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue