From 359d4fe5eda735ee056652d4400f5eb34a3d213d Mon Sep 17 00:00:00 2001 From: Colin Rofls Date: Tue, 14 Nov 2017 12:23:40 -0500 Subject: Add derive(PartialEq) for Value, ValueType - closes #51 --- src/value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/value.rs') diff --git a/src/value.rs b/src/value.rs index 3b700cf..a8ae94a 100644 --- a/src/value.rs +++ b/src/value.rs @@ -5,7 +5,7 @@ use error::*; use serde::de::{Deserialize, Deserializer, Visitor}; /// Underlying kind of the configuration value. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum ValueKind { Nil, Boolean(bool), @@ -114,7 +114,7 @@ impl Display for ValueKind { } /// A configuration value. -#[derive(Default, Debug, Clone)] +#[derive(Default, Debug, Clone, PartialEq)] pub struct Value { /// A description of the original location of the value. /// -- cgit v1.2.3