forked from AbleScript/ablescript
thing
This commit is contained in:
parent
cbb7152890
commit
e674052942
|
@ -221,15 +221,7 @@ impl<'a, I: BootlegRead> Interpreter<'a, I> {
|
||||||
};
|
};
|
||||||
Some((*counter, index))
|
Some((*counter, index))
|
||||||
})
|
})
|
||||||
.find_map(
|
.find_map(|(counter, index)| (counter == 0).then_some(index))
|
||||||
|(counter, index)| {
|
|
||||||
if counter == 0 {
|
|
||||||
Some(index)
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
},
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_matching_opening_bracket(&mut self, closing: usize) -> Option<usize> {
|
fn get_matching_opening_bracket(&mut self, closing: usize) -> Option<usize> {
|
||||||
|
@ -245,15 +237,7 @@ impl<'a, I: BootlegRead> Interpreter<'a, I> {
|
||||||
};
|
};
|
||||||
Some((*counter, index))
|
Some((*counter, index))
|
||||||
})
|
})
|
||||||
.find_map(
|
.find_map(|(counter, index)| (counter == 0).then_some(index))
|
||||||
|(counter, index)| {
|
|
||||||
if counter == 0 {
|
|
||||||
Some(index)
|
|
||||||
} else {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
},
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue