diff --git a/crates/toml_edit/src/item.rs b/crates/toml_edit/src/item.rs index 75bfcdc1..5b5b64fe 100644 --- a/crates/toml_edit/src/item.rs +++ b/crates/toml_edit/src/item.rs @@ -348,6 +348,18 @@ impl<'b> From<&'b Item> for Item { } } +impl From for Item { + fn from(s: Table) -> Self { + Item::Table(s) + } +} + +impl From for Item { + fn from(s: ArrayOfTables) -> Self { + Item::ArrayOfTables(s) + } +} + impl> From for Item { fn from(s: V) -> Self { Item::Value(s.into())