mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Format os.rs
This commit is contained in:
@@ -42,8 +42,8 @@ pub fn rust_file(raw_fileno: i64) -> File {
|
||||
use std::os::windows::io::FromRawHandle;
|
||||
|
||||
//TODO: This is untested and (very) unsafe handling or
|
||||
//raw pointers - This should be patched urgently by
|
||||
//comparison to the cpython handling of the equivalent fileno
|
||||
//raw pointers - This should be patched urgently by
|
||||
//comparison to the cpython handling of the equivalent fileno
|
||||
//fields for windows
|
||||
unsafe { File::from_raw_handle(raw_fileno as *mut c_void) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user