@@ -5,13 +5,13 @@ use crate::cmd;
55use crate :: helpers;
66use crate :: helpers:: StrippedVerbatimPath ;
77use crate :: helpers:: emojis:: * ;
8+ use crate :: lock:: LOCKFILE ;
89use crate :: queue:: FifoQueue ;
910use crate :: queue:: * ;
1011use futures_timer:: Delay ;
1112use notify:: event:: ModifyKind ;
1213use notify:: { Config , Error , Event , EventKind , RecommendedWatcher , RecursiveMode , Watcher } ;
13- use crate :: lock:: LOCKFILE ;
14- use std:: path:: { Path , PathBuf } ;
14+ use std:: path:: Path ;
1515use std:: sync:: Arc ;
1616use std:: sync:: Mutex ;
1717use std:: time:: { Duration , Instant } ;
@@ -63,19 +63,11 @@ async fn async_watch(
6363 after_build : Option < String > ,
6464 create_sourcedirs : bool ,
6565 build_dev_deps : bool ,
66- bsc_path : Option < PathBuf > ,
6766 snapshot_output : bool ,
6867) -> notify:: Result < ( ) > {
69- let mut build_state = build:: initialize_build (
70- None ,
71- filter,
72- show_progress,
73- path,
74- & bsc_path,
75- build_dev_deps,
76- snapshot_output,
77- )
78- . expect ( "Can't initialize build" ) ;
68+ let mut build_state =
69+ build:: initialize_build ( None , filter, show_progress, path, build_dev_deps, snapshot_output)
70+ . expect ( "Can't initialize build" ) ;
7971 let mut needs_compile_type = CompileType :: Incremental ;
8072 // create a mutex to capture if ctrl-c was pressed
8173 let ctrlc_pressed = Arc :: new ( Mutex :: new ( false ) ) ;
@@ -259,7 +251,6 @@ async fn async_watch(
259251 filter,
260252 show_progress,
261253 path,
262- & bsc_path,
263254 build_dev_deps,
264255 snapshot_output,
265256 )
@@ -308,7 +299,6 @@ pub fn start(
308299 after_build : Option < String > ,
309300 create_sourcedirs : bool ,
310301 build_dev_deps : bool ,
311- bsc_path : Option < String > ,
312302 snapshot_output : bool ,
313303) {
314304 futures:: executor:: block_on ( async {
@@ -323,7 +313,6 @@ pub fn start(
323313 . expect ( "Could not start watcher" ) ;
324314
325315 let path = Path :: new ( folder) ;
326- let bsc_path_buf = bsc_path. map ( PathBuf :: from) ;
327316
328317 if let Err ( e) = async_watch (
329318 consumer,
@@ -333,7 +322,6 @@ pub fn start(
333322 after_build,
334323 create_sourcedirs,
335324 build_dev_deps,
336- bsc_path_buf,
337325 snapshot_output,
338326 )
339327 . await
0 commit comments