File tree 2 files changed +0
-16
lines changed
2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -204,18 +204,6 @@ impl OwnedHandle {
204
204
} ) ?;
205
205
unsafe { Ok ( Self :: from_raw_handle ( ret) ) }
206
206
}
207
-
208
- /// Allow child processes to inherit the handle.
209
- pub ( crate ) fn set_inheritable ( & self ) -> io:: Result < ( ) > {
210
- cvt ( unsafe {
211
- c:: SetHandleInformation (
212
- self . as_raw_handle ( ) ,
213
- c:: HANDLE_FLAG_INHERIT ,
214
- c:: HANDLE_FLAG_INHERIT ,
215
- )
216
- } ) ?;
217
- Ok ( ( ) )
218
- }
219
207
}
220
208
221
209
impl TryFrom < HandleOrInvalid > for OwnedHandle {
Original file line number Diff line number Diff line change @@ -221,10 +221,6 @@ impl Handle {
221
221
Ok ( Self ( self . 0 . duplicate ( access, inherit, options) ?) )
222
222
}
223
223
224
- pub ( crate ) fn set_inheritable ( & self ) -> io:: Result < ( ) > {
225
- self . 0 . set_inheritable ( )
226
- }
227
-
228
224
/// Performs a synchronous read.
229
225
///
230
226
/// If the handle is opened for asynchronous I/O then this abort the process.
You can’t perform that action at this time.
0 commit comments