File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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 ) ]
1616pub enum ValueKind {
17+ #[ default]
1718 Nil ,
1819 Boolean ( bool ) ,
1920 I64 ( i64 ) ,
@@ -29,12 +30,6 @@ pub enum ValueKind {
2930pub ( crate ) type Array = Vec < Value > ;
3031pub ( crate ) type Table = Map < String , Value > ;
3132
32- impl Default for ValueKind {
33- fn default ( ) -> Self {
34- Self :: Nil
35- }
36- }
37-
3833impl < T > From < Option < T > > for ValueKind
3934where
4035 T : Into < Self > ,
You can’t perform that action at this time.
0 commit comments