Skip to content

Commit 867392a

Browse files
authored
Update MSRV in .clippy.toml and silence new Windows warnings. (#436)
1 parent 0afdaf1 commit 867392a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.38"
1+
msrv = "1.56"

src/windows.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use core::mem::MaybeUninit;
2626
// bcryptprimitives.dll lacks an import library, we use the windows-targets
2727
// crate to link to it.
2828
windows_targets::link!("bcryptprimitives.dll" "system" fn ProcessPrng(pbdata: *mut u8, cbdata: usize) -> BOOL);
29+
#[allow(clippy::upper_case_acronyms)]
2930
pub type BOOL = i32;
3031
pub const TRUE: BOOL = 1i32;
3132

src/windows7.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern "system" {
1919
#[link_name = "SystemFunction036"]
2020
fn RtlGenRandom(randombuffer: *mut c_void, randombufferlength: u32) -> BOOLEAN;
2121
}
22+
#[allow(clippy::upper_case_acronyms)]
2223
type BOOLEAN = u8;
2324
const TRUE: BOOLEAN = 1u8;
2425

0 commit comments

Comments
 (0)