aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r--src/makefile/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index e07cdfd..1ce335d 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -84,15 +84,15 @@ impl<'a> Makefile<'a> {
}
}
- pub fn and_read_file(&mut self, path: impl AsRef<Path>) -> &mut Self {
+ pub fn and_read_file(&mut self, path: impl AsRef<Path>) {
let file = File::open(path);
// TODO handle errors
let file = file.expect("couldn't open makefile!");
let file_reader = BufReader::new(file);
- self.and_read(file_reader)
+ self.and_read(file_reader);
}
- pub fn and_read(&mut self, source: impl BufRead) -> &mut Self {
+ pub fn and_read(&mut self, source: impl BufRead) {
let mut lines_iter = source.lines().enumerate().peekable();
while let Some((line_number, line)) = lines_iter.next() {
// TODO handle I/O errors at all
@@ -356,7 +356,6 @@ impl<'a> Makefile<'a> {
}
}
}
- self
}
fn special_target_has_prereq(&self, target: &str, name: &str) -> bool {