aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefile/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index af8ca81..00c5051 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -4,6 +4,7 @@ use std::env;
use std::fmt;
use std::fs::File;
use std::io::{BufRead, BufReader};
+use std::iter::Peekable;
use std::path::Path;
use std::rc::Rc;
@@ -235,9 +236,8 @@ impl<'a> Makefile<'a> {
&mut self,
line_tokens: &TokenString,
line_number: usize,
- lines_iter: &mut impl Iterator<Item = (usize, Result<String>)>,
+ lines_iter: &mut Peekable<impl Iterator<Item = (usize, Result<String>)>>,
) -> Result<()> {
- let mut lines_iter = lines_iter.peekable();
let (targets, not_targets) = line_tokens
.split_once(':')
.ok_or_else(|| eyre!("read_rule couldn't find a ':' on line {}", line_number))?;