Skip to content

Commit 786a26f

Browse files
authored
Merge pull request #94 from cakebaker/clippy_fix_warning
clippy: fix warning from `needless_doctest_main`
2 parents 5f8fc3d + 6efd413 commit 786a26f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ platform-info = "2"
4141
4242
```rust
4343
*/
44-
#![doc = include_str!("../examples/ex.rs")]
44+
#![cfg_attr(doc, doc = include_str!("../examples/ex.rs"))]
4545
/*!
4646
```
4747

src/platform/windows_safe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub fn KERNEL32_IsWow64Process(process: HANDLE) -> Result<bool, WinOSError> {
482482
)));
483483
}
484484

485-
let func: extern "stdcall" fn(HANDLE, *mut BOOL) -> BOOL =
485+
let func: extern "system" fn(HANDLE, *mut BOOL) -> BOOL =
486486
unsafe { mem::transmute(func as *const ()) };
487487

488488
let mut is_wow64: BOOL = FALSE;
@@ -516,7 +516,7 @@ pub fn NTDLL_RtlGetVersion() -> Result<OSVERSIONINFOEXW, WinOSError> {
516516
symbol_name, module_file
517517
)));
518518
}
519-
let func: extern "stdcall" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
519+
let func: extern "system" fn(*mut RTL_OSVERSIONINFOEXW) -> NTSTATUS =
520520
unsafe { mem::transmute(func as *const ()) };
521521

522522
let mut os_version_info = match create_OSVERSIONINFOEXW() {

0 commit comments

Comments
 (0)