File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44import subprocess
55import sys
66import time
7+ from typing import List
78
89from watchdog .events import FileSystemEventHandler
910from watchdog .observers import Observer
@@ -51,10 +52,9 @@ def create_rust_file(file_name: str):
5152 print ("Created rust file : %s" , rust_file )
5253
5354
54- def clean_rust_build (rust_binaries : list [str ]):
55+ def clean_rust_binaries (rust_binaries : List [str ]):
5556 for file in rust_binaries :
5657 print ("Cleaning rust file : %s" , file )
57-
5858 os .remove (file )
5959
6060
@@ -113,7 +113,7 @@ def reload(self):
113113 arguments = [arg for arg in sys .argv [1 :] if not arg .startswith ("--dev" )]
114114
115115
116- clean_rust_build (self .built_rust_binaries )
116+ clean_rust_binaries (self .built_rust_binaries )
117117 self .built_rust_binaries = compile_rust_files (self .directory_path )
118118
119119 self .process = subprocess .Popen (
You can’t perform that action at this time.
0 commit comments