Skip to content

Commit

Permalink
Suppress fewer warnings (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Oct 5, 2022
1 parent 931a9f6 commit d314819
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/libs/bindgen/src/lib.rs
Expand Up @@ -25,7 +25,7 @@ pub fn namespace(gen: &Gen, tree: &Tree) -> String {

if tree.namespace == "Windows" {
tokens.combine(&quote! {
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, clashing_extern_declarations, unused_variables, dead_code, clippy::all)]
#![allow(non_upper_case_globals, non_camel_case_types, clippy::all)]
});
}

Expand Down
2 changes: 1 addition & 1 deletion crates/libs/sys/src/Windows/mod.rs
@@ -1,3 +1,3 @@
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, clashing_extern_declarations, unused_variables, dead_code, clippy::all)]
#![allow(non_upper_case_globals, non_camel_case_types, clippy::all)]
#[cfg(feature = "Win32")]
pub mod Win32;
1 change: 1 addition & 0 deletions crates/libs/sys/src/lib.rs
Expand Up @@ -4,6 +4,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs

#![no_std]
#![doc(html_no_source)]
#![allow(non_snake_case, clashing_extern_declarations)]

extern crate self as windows_sys;
mod Windows;
Expand Down
2 changes: 1 addition & 1 deletion crates/libs/windows/src/Windows/mod.rs
@@ -1,4 +1,4 @@
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, clashing_extern_declarations, unused_variables, dead_code, clippy::all)]
#![allow(non_upper_case_globals, non_camel_case_types, clippy::all)]
#[cfg(feature = "AI")]
pub mod AI;
#[cfg(feature = "ApplicationModel")]
Expand Down

0 comments on commit d314819

Please sign in to comment.