aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/target.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-01 17:44:50 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-01 17:44:50 -0600
commit093e58de2ffc8243e6ff929f50a2aaa6ef60848b (patch)
treebe2003c6fd8d774f9462f4c0bd2ddae2af92f238 /src/makefile/target.rs
parente1128fe55d91ca60086de45c911b4568d2eec9ee (diff)
downloadmakers-093e58de2ffc8243e6ff929f50a2aaa6ef60848b.tar.gz
makers-093e58de2ffc8243e6ff929f50a2aaa6ef60848b.zip
slightly fancier errors
Diffstat (limited to 'src/makefile/target.rs')
-rw-r--r--src/makefile/target.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/makefile/target.rs b/src/makefile/target.rs
index 64fdb7d..615c9e9 100644
--- a/src/makefile/target.rs
+++ b/src/makefile/target.rs
@@ -3,6 +3,8 @@ use std::fmt;
use std::fs::metadata;
use std::time::SystemTime;
+use eyre::Result;
+
use crate::makefile::command_line::CommandLine;
use super::Makefile;
@@ -50,7 +52,7 @@ impl Target {
exists && newer_than_all_dependencies
}
- pub fn update(&self, file: &Makefile) -> anyhow::Result<()> {
+ pub fn update(&self, file: &Makefile) -> Result<()> {
for prereq in &self.prerequisites {
file.update_target(prereq)?;
}
@@ -62,7 +64,7 @@ impl Target {
Ok(())
}
- fn execute_commands(&self, file: &Makefile) -> anyhow::Result<()> {
+ fn execute_commands(&self, file: &Makefile) -> Result<()> {
for command in &self.commands {
command.execute(file, self)?;
}