From 9d252beea27dc6b3f8b8a938375a17f291cdad2b Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 26 Mar 2021 21:29:44 -0600 Subject: start at the start, not the end --- src/makefile/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/makefile/token.rs b/src/makefile/token.rs index 4943010..8bac34f 100644 --- a/src/makefile/token.rs +++ b/src/makefile/token.rs @@ -67,7 +67,7 @@ impl TokenString { } pub fn trim_start(&mut self) { - if let Some(Token::Text(t)) = self.0.last_mut() { + if let Some(Token::Text(t)) = self.0.first_mut() { *t = t.trim_start().into(); } } -- cgit v1.2.3