Skip to content

Commit d0629a3

Browse files
unlimitedsolasirhcel
authored andcommitted
Remove unncessary cast
1 parent 6d6ad4b commit d0629a3

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
@@ -84,7 +84,7 @@ impl COMPort {
8484

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

8989
let mut dcb = dcb::get_dcb(com.raw_handle())?;
9090
dcb::init(&mut dcb);

0 commit comments

Comments
 (0)