From 5f20d2aceedb7b3027322ea4c6093418a836bac3 Mon Sep 17 00:00:00 2001 From: Sean McLoughlin Date: Tue, 15 Jun 2021 13:49:03 -0700 Subject: [PATCH] Derive Eq, PartialEq for Define, DefineText --- sv-parser-pp/src/preprocess.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv-parser-pp/src/preprocess.rs b/sv-parser-pp/src/preprocess.rs index 4e021b0..ea65176 100644 --- a/sv-parser-pp/src/preprocess.rs +++ b/sv-parser-pp/src/preprocess.rs @@ -81,14 +81,14 @@ impl PreprocessedText { } } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Define { identifier: String, arguments: Vec<(String, Option)>, text: Option, } -#[derive(Clone, Debug)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct DefineText { text: String, origin: Option<(PathBuf, Range)>,