Improve tracking for agent edits (#27857)
Release Notes: - N/A --------- Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
d26c477d86
commit
4a252515b1
19 changed files with 757 additions and 795 deletions
|
@ -224,6 +224,15 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> Patch<T> {
|
||||
pub fn retain_mut<F>(&mut self, f: F)
|
||||
where
|
||||
F: FnMut(&mut Edit<T>) -> bool,
|
||||
{
|
||||
self.0.retain_mut(f);
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone> IntoIterator for Patch<T> {
|
||||
type Item = Edit<T>;
|
||||
type IntoIter = std::vec::IntoIter<Edit<T>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue