From 7029372c9fada6316852915765cc0d763be3c63c Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 10 Nov 2024 16:02:48 -0700 Subject: clippy moment --- src/makefile/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/makefile/token.rs') diff --git a/src/makefile/token.rs b/src/makefile/token.rs index 418baf5..396380b 100644 --- a/src/makefile/token.rs +++ b/src/makefile/token.rs @@ -128,7 +128,7 @@ impl TokenString { } pub fn is_empty(&self) -> bool { - match self.0.get(0) { + match self.0.first() { None => true, Some(Token::Text(t)) if t.is_empty() && self.0.len() == 1 => true, _ => false, -- cgit v1.2.3