Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 1, 2024
1 parent 17b0c36 commit 4fe9383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/toml/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl Map<String, Value> {
String: Borrow<Q>,
Q: Ord + Eq + Hash + ?Sized,
{
self.map.remove(key)
self.map.shift_remove(key)
}

/// Retains only the elements specified by the `keep` predicate.
Expand Down Expand Up @@ -501,7 +501,7 @@ impl<'a> OccupiedEntry<'a> {
/// Takes the value of the entry out of the map, and returns it.
#[inline]
pub fn remove(self) -> Value {
self.occupied.remove()
self.occupied.shift_remove()
}
}

Expand Down
1 change: 1 addition & 0 deletions crates/toml_edit/src/ser/map.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use super::{Error, KeySerializer, SerializeValueArray, ValueSerializer};

#[doc(hidden)]
#[allow(clippy::large_enum_variant)]
pub enum SerializeMap {
Datetime(SerializeDatetime),
Table(SerializeInlineTable),
Expand Down

0 comments on commit 4fe9383

Please sign in to comment.