Skip to content

Commit

Permalink
fix(ser)!: Remove deprecated tables_last function
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 27, 2023
1 parent 86280d7 commit 9bbb831
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions crates/toml/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,24 +1079,3 @@ mod internal {
Ok(())
}
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "`tables_last` is no longer needed; things just work"
)]
pub fn tables_last<'a, I, K, V, S>(data: &'a I, serializer: S) -> Result<S::Ok, S::Error>
where
&'a I: IntoIterator<Item = (K, V)>,
K: serde::ser::Serialize,
V: serde::ser::Serialize,
S: serde::ser::Serializer,
{
use serde::ser::SerializeMap;

let mut map = serializer.serialize_map(None)?;
for (k, v) in data {
map.serialize_entry(&k, &v)?;
}
map.end()
}

0 comments on commit 9bbb831

Please sign in to comment.