aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-27 17:18:38 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-27 17:18:38 -0600
commitd790f408294a7426460339a477026fd6d4400286 (patch)
tree9988f3b2dba45b93b0f11ba42816022a345c05e7
parent2a95c7b9d52e09aa82e54350fec514ceb69aab56 (diff)
downloadmakers-d790f408294a7426460339a477026fd6d4400286.tar.gz
makers-d790f408294a7426460339a477026fd6d4400286.zip
juggle declarations so clippy shuts up
-rw-r--r--src/makefile/mod.rs6
1 files 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 {