summaryrefslogtreecommitdiff
path: root/cli/util/file_watcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/util/file_watcher.rs')
-rw-r--r--cli/util/file_watcher.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/util/file_watcher.rs b/cli/util/file_watcher.rs
index 29213f0c9..05415f2a6 100644
--- a/cli/util/file_watcher.rs
+++ b/cli/util/file_watcher.rs
@@ -74,7 +74,7 @@ where
if let Err(err) = result {
let error_string = match err.downcast_ref::<JsError>() {
Some(e) => format_js_error(e),
- None => format!("{:?}", err),
+ None => format!("{err:?}"),
};
eprintln!(
"{}: {}",
@@ -130,7 +130,7 @@ pub struct PrintConfig {
fn create_print_after_restart_fn(clear_screen: bool) -> impl Fn() {
move || {
if clear_screen && atty::is(atty::Stream::Stderr) {
- eprint!("{}", CLEAR_SCREEN);
+ eprint!("{CLEAR_SCREEN}");
}
info!(
"{} File change detected! Restarting!",