What about this?
pub fn outer_method(&mut self) {
let vec = std::mem::take(&mut self.things);
for thing in &vec {
self.inner(thing);
}
self.things = vec;
}
What about this?
pub fn outer_method(&mut self) {
let vec = std::mem::take(&mut self.things);
for thing in &vec {
self.inner(thing);
}
self.things = vec;
}