diff options
Diffstat (limited to 'vendor/toml_edit/src/item.rs')
-rw-r--r-- | vendor/toml_edit/src/item.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vendor/toml_edit/src/item.rs b/vendor/toml_edit/src/item.rs index 2025fd916..a14056319 100644 --- a/vendor/toml_edit/src/item.rs +++ b/vendor/toml_edit/src/item.rs @@ -7,9 +7,10 @@ use crate::table::TableLike; use crate::{Array, InlineTable, Table, Value}; /// Type representing either a value, a table, an array of tables, or none. -#[derive(Debug)] +#[derive(Debug, Default)] pub enum Item { /// Type representing none. + #[default] None, /// Type representing value. Value(Value), @@ -328,12 +329,6 @@ impl Clone for Item { } } -impl Default for Item { - fn default() -> Self { - Item::None - } -} - impl FromStr for Item { type Err = crate::TomlError; |