Explicitly ignore `into_raw_handle()` using `let _ =` in sys/pal/wind… · patricklam/verify-rust-std@3b86ae3

Original file line numberDiff line numberDiff line change

@@ -101,7 +101,7 @@ fn write(

101101

unsafe {

102102

let handle = Handle::from_raw_handle(handle);

103103

let ret = handle.write(data);

104-

handle.into_raw_handle(); // Don't close the handle

104+

let _ = handle.into_raw_handle(); // Don't close the handle

105105

return ret;

106106

}

107107

}

@@ -250,7 +250,7 @@ impl io::Read for Stdin {

250250

unsafe {

251251

let handle = Handle::from_raw_handle(handle);

252252

let ret = handle.read(buf);

253-

handle.into_raw_handle(); // Don't close the handle

253+

let _ = handle.into_raw_handle(); // Don't close the handle

254254

return ret;

255255

}

256256

}