mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-31 20:09:01 +00:00
Migrate convert_bool_then to SyntaxEditor
Update assist docs
This commit is contained in:
parent
fe84446166
commit
37822d5917
4 changed files with 174 additions and 60 deletions
|
|
@ -239,10 +239,10 @@ impl SyntaxMappingBuilder {
|
|||
|
||||
pub fn map_children(
|
||||
&mut self,
|
||||
input: impl Iterator<Item = SyntaxNode>,
|
||||
output: impl Iterator<Item = SyntaxNode>,
|
||||
input: impl IntoIterator<Item = SyntaxNode>,
|
||||
output: impl IntoIterator<Item = SyntaxNode>,
|
||||
) {
|
||||
for pairs in input.zip_longest(output) {
|
||||
for pairs in input.into_iter().zip_longest(output) {
|
||||
let (input, output) = match pairs {
|
||||
itertools::EitherOrBoth::Both(l, r) => (l, r),
|
||||
itertools::EitherOrBoth::Left(_) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue