From 3971dcfe10b94e901a224b5328a9dafd1e2ecc08 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Jul 2019 17:11:37 -0400 Subject: Use system rustfmt instead of fixed binary (#2701) --- cli/repl.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/repl.rs') 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 } } -- cgit v1.2.3