From d790f408294a7426460339a477026fd6d4400286 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 27 Mar 2021 17:18:38 -0600 Subject: juggle declarations so clippy shuts up --- src/makefile/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 0304bb7..d57bbf4 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -130,9 +130,6 @@ impl<'a> Makefile<'a> { } else { // unfortunately, rules vs macros can't be determined until after // macro tokenizing. so that's suboptimal. - // TODO errors - let line_tokens: TokenString = line.parse().unwrap(); - enum LineType { Rule, Macro, @@ -164,6 +161,9 @@ impl<'a> Makefile<'a> { LineType::Unknown } + // TODO errors + let line_tokens: TokenString = line.parse().unwrap(); + let line_type = get_line_type(&line_tokens); match line_type { -- cgit v1.2.3