File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ impl WasiFd {
96
96
unsafe { wasi:: fd_sync ( self . as_raw_fd ( ) as wasi:: Fd ) . map_err ( err2io) }
97
97
}
98
98
99
- pub fn advise ( & self , offset : u64 , len : u64 , advice : wasi:: Advice ) -> io:: Result < ( ) > {
99
+ pub ( crate ) fn advise ( & self , offset : u64 , len : u64 , advice : wasi:: Advice ) -> io:: Result < ( ) > {
100
100
unsafe {
101
101
wasi:: fd_advise ( self . as_raw_fd ( ) as wasi:: Fd , offset, len, advice) . map_err ( err2io)
102
102
}
@@ -179,7 +179,7 @@ impl WasiFd {
179
179
}
180
180
}
181
181
182
- pub fn filestat_get ( & self ) -> io:: Result < wasi:: Filestat > {
182
+ pub ( crate ) fn filestat_get ( & self ) -> io:: Result < wasi:: Filestat > {
183
183
unsafe { wasi:: fd_filestat_get ( self . as_raw_fd ( ) as wasi:: Fd ) . map_err ( err2io) }
184
184
}
185
185
@@ -199,7 +199,7 @@ impl WasiFd {
199
199
unsafe { wasi:: fd_filestat_set_size ( self . as_raw_fd ( ) as wasi:: Fd , size) . map_err ( err2io) }
200
200
}
201
201
202
- pub fn path_filestat_get (
202
+ pub ( crate ) fn path_filestat_get (
203
203
& self ,
204
204
flags : wasi:: Lookupflags ,
205
205
path : & str ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl FileAttr {
104
104
Ok ( SystemTime :: from_wasi_timestamp ( self . meta . ctim ) )
105
105
}
106
106
107
- pub fn as_wasi ( & self ) -> & wasi:: Filestat {
107
+ pub ( crate ) fn as_wasi ( & self ) -> & wasi:: Filestat {
108
108
& self . meta
109
109
}
110
110
}
@@ -142,7 +142,7 @@ impl FileType {
142
142
self . bits == wasi:: FILETYPE_SYMBOLIC_LINK
143
143
}
144
144
145
- pub fn bits ( & self ) -> wasi:: Filetype {
145
+ pub ( crate ) fn bits ( & self ) -> wasi:: Filetype {
146
146
self . bits
147
147
}
148
148
}
You can’t perform that action at this time.
0 commit comments