Skip to content

Commit 2051f62

Browse files
committed
style: Make clippy happy
1 parent bf6e256 commit 2051f62

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/value.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ use crate::map::Map;
1212
/// Standard operations on a [`Value`] by users of this crate do not require
1313
/// knowledge of [`ValueKind`]. Introspection of underlying kind is only required
1414
/// when the configuration values are unstructured or do not have known types.
15-
#[derive(Debug, Clone, PartialEq)]
15+
#[derive(Debug, Clone, PartialEq, Default)]
1616
pub enum ValueKind {
17+
#[default]
1718
Nil,
1819
Boolean(bool),
1920
I64(i64),
@@ -29,12 +30,6 @@ pub enum ValueKind {
2930
pub(crate) type Array = Vec<Value>;
3031
pub(crate) type Table = Map<String, Value>;
3132

32-
impl Default for ValueKind {
33-
fn default() -> Self {
34-
Self::Nil
35-
}
36-
}
37-
3833
impl<T> From<Option<T>> for ValueKind
3934
where
4035
T: Into<Self>,

0 commit comments

Comments
 (0)