From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/toml_edit/src/item.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'vendor/toml_edit/src/item.rs') 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; -- cgit v1.2.3