From a17224fa6300452800c7162e9eb8948025a5dbb1 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Apr 2021 14:28:59 -0600 Subject: always recurse when in dry-run etc mode --- src/makefile/token.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/makefile/token.rs') diff --git a/src/makefile/token.rs b/src/makefile/token.rs index 294e80d..2f90f50 100644 --- a/src/makefile/token.rs +++ b/src/makefile/token.rs @@ -155,6 +155,15 @@ impl fmt::Display for TokenString { } } +impl PartialEq for TokenString { + fn eq(&self, other: &str) -> bool { + match self.0.as_slice() { + [Token::Text(x)] => x == other, + _ => false, + } + } +} + #[derive(PartialEq, Eq, Clone, Debug)] pub enum Token { Text(String), -- cgit v1.2.3