diff options
Diffstat (limited to 'src/makefile/target.rs')
-rw-r--r-- | src/makefile/target.rs | 6 |
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)?; } |