Skip to content

Commit

Permalink
Update MSRV in .clippy.toml and silence new Windows warnings. (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith authored May 29, 2024
1 parent 0afdaf1 commit 867392a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.38"
msrv = "1.56"
1 change: 1 addition & 0 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use core::mem::MaybeUninit;
// bcryptprimitives.dll lacks an import library, we use the windows-targets
// crate to link to it.
windows_targets::link!("bcryptprimitives.dll" "system" fn ProcessPrng(pbdata: *mut u8, cbdata: usize) -> BOOL);
#[allow(clippy::upper_case_acronyms)]
pub type BOOL = i32;
pub const TRUE: BOOL = 1i32;

Expand Down
1 change: 1 addition & 0 deletions src/windows7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extern "system" {
#[link_name = "SystemFunction036"]
fn RtlGenRandom(randombuffer: *mut c_void, randombufferlength: u32) -> BOOLEAN;
}
#[allow(clippy::upper_case_acronyms)]
type BOOLEAN = u8;
const TRUE: BOOLEAN = 1u8;

Expand Down

0 comments on commit 867392a

Please sign in to comment.