aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {