diff --git a/src/lambda/relation.rs b/src/lambda/relation.rs index a90af9e0aa..9a3101eaf9 100644 --- a/src/lambda/relation.rs +++ b/src/lambda/relation.rs @@ -320,7 +320,7 @@ fn get_path_for_const_value_owned( ) -> Option { for path in path.iter() { const_value = match const_value { - ConstValue::Object(mut obj) => obj.remove(path.as_ref())?, + ConstValue::Object(mut obj) => obj.swap_remove(path.as_ref())?, _ => None?, } }