Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress fewer warnings #2085

Merged
merged 2 commits into from Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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