multi_buffer: Split multi_buffer into more modules (#41033)
There are a of separate APIs in this, partially interleaved making it difficult to grasp. Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -2078,12 +2078,15 @@ impl Buffer {
|
||||
}
|
||||
}
|
||||
|
||||
/// Set the change bit for all "listeners".
|
||||
fn was_changed(&mut self) {
|
||||
self.change_bits.retain(|change_bit| {
|
||||
change_bit.upgrade().is_some_and(|bit| {
|
||||
bit.replace(true);
|
||||
true
|
||||
})
|
||||
change_bit
|
||||
.upgrade()
|
||||
.inspect(|bit| {
|
||||
_ = bit.replace(true);
|
||||
})
|
||||
.is_some()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user