summaryrefslogtreecommitdiff
path: root/cli/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/repl.rs')
-rw-r--r--cli/repl.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/repl.rs b/cli/repl.rs
index a253e4435..7e72b9b10 100644
--- a/cli/repl.rs
+++ b/cli/repl.rs
@@ -68,7 +68,9 @@ impl Repl {
self
.editor
.load_history(&self.history_file.to_str().unwrap())
- .map_err(|e| debug!("Unable to load history file: {:?} {}", self.history_file, e))
+ .map_err(|e| {
+ debug!("Unable to load history file: {:?} {}", self.history_file, e)
+ })
// ignore this error (e.g. it occurs on first load)
.unwrap_or(())
}
@@ -91,7 +93,8 @@ impl Repl {
.map(|line| {
self.editor.add_history_entry(line.clone());
line
- }).map_err(ErrBox::from)
+ })
+ .map_err(ErrBox::from)
// Forward error to TS side for processing
}
}