File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ use powershell_script::PsScriptBuilder;
2
2
use rand:: seq:: SliceRandom ;
3
3
use std:: collections:: HashMap ;
4
4
use std:: env;
5
- use std:: thread;
6
5
use std:: fs:: File ;
7
6
use std:: io:: { self , Error , Read , Write } ;
7
+ use std:: thread;
8
8
use std:: thread:: sleep;
9
9
use std:: time:: { Duration , SystemTime , UNIX_EPOCH } ;
10
10
@@ -569,9 +569,7 @@ impl Executor {
569
569
"thread" => {
570
570
let code = self . pop_stack ( ) . get_string ( ) ;
571
571
let mut executor = self . clone ( ) ;
572
- thread:: spawn ( move || {
573
- executor. evaluate_program ( code)
574
- } ) ;
572
+ thread:: spawn ( move || executor. evaluate_program ( code) ) ;
575
573
}
576
574
577
575
// シェルコマンドを実行
@@ -582,7 +580,9 @@ impl Executor {
582
580
. hidden ( false )
583
581
. print_commands ( false )
584
582
. build ( ) ;
585
- let _ = ps. run ( "[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding('utf-8')" ) ;
583
+ let _ = ps. run (
584
+ "[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding('utf-8')" ,
585
+ ) ;
586
586
let result = ps. run ( self . pop_stack ( ) . get_string ( ) . as_str ( ) ) ;
587
587
match result {
588
588
Ok ( i) => self . stack . push ( Type :: String (
You can’t perform that action at this time.
0 commit comments