Skip to content

Commit

Permalink
Changed to non deprecated removes that should have same effect as old…
Browse files Browse the repository at this point in the history
… remove
  • Loading branch information
daidoji committed Jan 31, 2024
1 parent 7cd5453 commit 70645e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/prefixer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ mod test {
let prefixer = Prefixer::new(Some(&ked), None, Some(code), None, None, None, None).unwrap();

let mut map = ked.to_map().unwrap();
map.remove("k");
map.swap_remove("k");
ked = dat!(&map);

assert!(!prefixer.verify(&ked, None).unwrap());
Expand Down
2 changes: 1 addition & 1 deletion src/core/saider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn derive(
let mut map = sad.to_map()?;
for key in ignore.unwrap_or(&[]) {
if map.contains_key(*key) {
map.remove(*key);
map.swap_remove(*key);
}
}
let ser = dat!(&map);
Expand Down

0 comments on commit 70645e2

Please sign in to comment.