Update toml and toml_edit crates (#8963)

Eliminates a few duplicate versions from the dependency tree.
This commit is contained in:
Heikki Linnakangas
2024-09-08 21:47:23 +03:00
committed by GitHub
parent 93ec7503e0
commit 89c5e80b3f
8 changed files with 26 additions and 56 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ mod tests {
use super::*;
fn parse(input: &str) -> anyhow::Result<RemoteStorageConfig> {
let toml = input.parse::<toml_edit::Document>().unwrap();
let toml = input.parse::<toml_edit::DocumentMut>().unwrap();
RemoteStorageConfig::from_toml(toml.as_item())
}
+1 -1
View File
@@ -10,7 +10,7 @@ pub fn deserialize_item<T>(item: &toml_edit::Item) -> Result<T, Error>
where
T: serde::de::DeserializeOwned,
{
let document: toml_edit::Document = match item {
let document: toml_edit::DocumentMut = match item {
toml_edit::Item::Table(toml) => toml.clone().into(),
toml_edit::Item::Value(toml_edit::Value::InlineTable(toml)) => {
toml.clone().into_table().into()