File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ fn is_wasi_reactor(bytes: &[u8]) -> bool {
95
95
return false ;
96
96
}
97
97
wasmparser:: Payload :: End ( _) => return false ,
98
- _ => continue
98
+ _ => continue ,
99
99
}
100
100
}
101
101
false
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ mod wasi_snapshot_preview1;
10
10
use embed:: LinkedStorage as DefaultStorage ;
11
11
use embed:: { EmbeddedFs , NodeIdTrait , Storage } ;
12
12
13
- use std:: { collections:: HashMap , ffi:: { CStr , CString } } ;
13
+ use std:: {
14
+ collections:: HashMap ,
15
+ ffi:: { CStr , CString } ,
16
+ } ;
14
17
use wasi:: Fd ;
15
18
16
19
/// User-facing file descriptor managed by wasi-vfs
@@ -63,11 +66,12 @@ impl<S: Storage> FileSystem<S> {
63
66
} ;
64
67
65
68
let mut prefix = Vec :: with_capacity ( prestat. u . dir . pr_name_len + 1 ) ;
66
- match wasi:: fd_prestat_dir_name ( fd, prefix. as_mut_ptr ( ) , prestat. u . dir . pr_name_len ) {
69
+ match wasi:: fd_prestat_dir_name ( fd, prefix. as_mut_ptr ( ) , prestat. u . dir . pr_name_len )
70
+ {
67
71
Ok ( _) => {
68
72
prefix. set_len ( prestat. u . dir . pr_name_len + 1 ) ;
69
73
prefix[ prestat. u . dir . pr_name_len ] = 0 ;
70
- } ,
74
+ }
71
75
Err ( other) => {
72
76
panic ! ( "failed to get prestat dir name: {}" , other) ;
73
77
}
You can’t perform that action at this time.
0 commit comments