diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-27 17:18:38 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-27 17:18:38 -0600 |
commit | d790f408294a7426460339a477026fd6d4400286 (patch) | |
tree | 9988f3b2dba45b93b0f11ba42816022a345c05e7 /src | |
parent | 2a95c7b9d52e09aa82e54350fec514ceb69aab56 (diff) | |
download | makers-d790f408294a7426460339a477026fd6d4400286.tar.gz makers-d790f408294a7426460339a477026fd6d4400286.zip |
juggle declarations so clippy shuts up
Diffstat (limited to 'src')
-rw-r--r-- | src/makefile/mod.rs | 6 |
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 { |