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 {
identifier: String,
arguments: Vec<(String, Option<String>)>,
text: Option<DefineText>,
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct DefineText {
text: String,
origin: Option<(PathBuf, Range)>,