summaryrefslogtreecommitdiff
path: root/cli/repl.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-07-31 17:11:37 -0400
committerGitHub <noreply@github.com>2019-07-31 17:11:37 -0400
commit3971dcfe10b94e901a224b5328a9dafd1e2ecc08 (patch)
treee347644a90094774e56e9315119c31594ca60796 /cli/repl.rs
parentb3541c38f5672ffb4a29d66dca19d88b9ecae478 (diff)
Use system rustfmt instead of fixed binary (#2701)
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
}
}