Derive Eq, PartialEq for Define, DefineText

This commit is contained in:
Sean McLoughlin 2021-06-15 13:49:03 -07:00
parent d3d810fb8e
commit 5f20d2acee

View File

@ -81,14 +81,14 @@ impl PreprocessedText {
} }
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug, Eq, PartialEq)]
pub struct Define { pub struct Define {
identifier: String, identifier: String,
arguments: Vec<(String, Option<String>)>, arguments: Vec<(String, Option<String>)>,
text: Option<DefineText>, text: Option<DefineText>,
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug, Eq, PartialEq)]
pub struct DefineText { pub struct DefineText {
text: String, text: String,
origin: Option<(PathBuf, Range)>, origin: Option<(PathBuf, Range)>,