Skip to content

Commit 175cffd

Browse files
committed
other instance
1 parent e05a6a5 commit 175cffd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rewatch/src/watcher.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ async fn async_watch(
5656
build_dev_deps: bool,
5757
bsc_path: Option<String>,
5858
) -> notify::Result<()> {
59-
let mut build_state =
60-
build::initialize_build(None, filter, show_progress, path, bsc_path).expect("Can't initialize build");
59+
let mut build_state = build::initialize_build(None, filter, show_progress, path, bsc_path.clone())
60+
.expect("Can't initialize build");
6161
let mut needs_compile_type = CompileType::Incremental;
6262
// create a mutex to capture if ctrl-c was pressed
6363
let ctrlc_pressed = Arc::new(Mutex::new(false));
@@ -215,7 +215,7 @@ async fn async_watch(
215215
}
216216
CompileType::Full => {
217217
let timing_total = Instant::now();
218-
build_state = build::initialize_build(None, filter, show_progress, path, None)
218+
build_state = build::initialize_build(None, filter, show_progress, path, bsc_path.clone())
219219
.expect("Can't initialize build");
220220
let _ = build::incremental_build(
221221
&mut build_state,

0 commit comments

Comments
 (0)