Skip to content

Commit 4087c77

Browse files
unlimitedsolasirhcel
authored andcommitted
Remove unncessary cast
1 parent 35e8a8b commit 4087c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/com.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl COMPort {
8181

8282
// create the COMPort here so the handle is getting closed
8383
// if one of the calls to `get_dcb()` or `set_dcb()` fails
84-
let mut com = COMPort::open_from_raw_handle(handle as RawHandle);
84+
let mut com = COMPort::open_from_raw_handle(handle);
8585

8686
let mut dcb = dcb::get_dcb(com.raw_handle())?;
8787
dcb::init(&mut dcb);

0 commit comments

Comments
 (0)