Skip to content

Commit

Permalink
chore: use swap_remove as remove is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 authored and renovate[bot] committed Jan 31, 2024
1 parent 0f4cd8b commit e1fec68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda/relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ fn get_path_for_const_value_owned(
) -> Option<ConstValue> {
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?,
}
}
Expand Down

0 comments on commit e1fec68

Please sign in to comment.