We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
entity_location
1 parent 4d42087 commit 486b1cdCopy full SHA for 486b1cd
1 file changed
src/server/replication_messages/mutations.rs
@@ -117,10 +117,14 @@ impl Mutations {
117
///
118
/// keeps allocated memory for reuse.
119
pub(super) fn pop(&mut self) {
120
- let Some(mut mutations) = self.entity_location.and_then(|location| match location {
121
- EntityLocation::Related { index } => self.related[index].pop(),
122
- EntityLocation::Standalone => self.standalone.pop(),
123
- }) else {
+ let Some(mut mutations) = self
+ .entity_location
+ .take()
+ .and_then(|location| match location {
124
+ EntityLocation::Related { index } => self.related[index].pop(),
125
+ EntityLocation::Standalone => self.standalone.pop(),
126
+ })
127
+ else {
128
return;
129
};
130
0 commit comments