mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-10-28 11:54:41 +08:00
rust: bindings: disable more clippy warnings
The clippy::complexity category includes manual_div_ceil, which triggers with e.g. bindgen 0.73.2. It is not really relevant to automatically generated code so drop it from all bindgen crates, but keep it enabled on purpose for other code. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
1 parent
e43092b0ce
commit
0937f8a26c
7 files changed
+7
No files matched your search
@@ -47,6 +47,7 @@ redundant_explicit_links = "deny"
|
||||
# default-warn lints
|
||||
result_unit_err = "allow"
|
||||
manual_checked_ops = "deny"
|
||||
manual_div_ceil = "deny"
|
||||
should_implement_trait = "deny"
|
||||
# can be for a reason, e.g. in callbacks
|
||||
unused_self = "allow"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
non_upper_case_globals,
|
||||
unnecessary_transmutes,
|
||||
unsafe_op_in_unsafe_fn,
|
||||
clippy::complexity,
|
||||
clippy::pedantic,
|
||||
clippy::restriction,
|
||||
clippy::style,
|
||||
|
||||
Reference in new issue
Block a user