aboutsummaryrefslogtreecommitdiff
path: root/src/executor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/executor.rs b/src/executor.rs
index 189df6f..ef97ace 100644
--- a/src/executor.rs
+++ b/src/executor.rs
@@ -20,7 +20,7 @@ impl Context {
pub fn empty() -> Context {
Context {
- vars: HashMap::new()
+ vars: HashMap::new(),
}
}
@@ -52,9 +52,7 @@ pub struct Executor {
impl Executor {
pub fn new(context: Context) -> Executor {
- Executor {
- context
- }
+ Executor { context }
}
pub fn execute(&mut self, bfile: BarbFile) -> Result<ureq::Response, String> {