diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-06 11:42:00 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:44:06 +0100 |
| commit | 2f9eec8f72673f97766eba1682a75f06f16302cb (patch) | |
| tree | 1e5ee74b2d81394db63a74edce42285265ffa340 /rust/qemu-api/src/bindings.rs | |
| parent | 7a35e2fb80df4c536cc808e498a259d96d0a804e (diff) | |
| download | focaccia-qemu-2f9eec8f72673f97766eba1682a75f06f16302cb.tar.gz focaccia-qemu-2f9eec8f72673f97766eba1682a75f06f16302cb.zip | |
rust: build: establish a baseline of lints across all crates
Many lints that default to allow can be helpful in detecting bugs or keeping the code style homogeneous. Add them liberally, though perhaps not as liberally as in hw/char/pl011/src/lib.rs. In particular, enabling entire groups can be problematic because of bitrot when new links are added in the future. For Clippy, this is actually a feature that is only present in Cargo 1.74.0 but, since we are not using Cargo to *build* QEMU, only developers will need a new-enough cargo and only to run tools such as clippy. The requirement does not apply to distros that are building QEMU. Reviewed-by: Junjie Mao <junjie.mao@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/bindings.rs')
| -rw-r--r-- | rust/qemu-api/src/bindings.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/qemu-api/src/bindings.rs b/rust/qemu-api/src/bindings.rs index 0b76ec58be..8a9b821bb9 100644 --- a/rust/qemu-api/src/bindings.rs +++ b/rust/qemu-api/src/bindings.rs @@ -7,10 +7,10 @@ non_snake_case, non_upper_case_globals, unsafe_op_in_unsafe_fn, + clippy::pedantic, + clippy::restriction, + clippy::style, clippy::missing_const_for_fn, - clippy::too_many_arguments, - clippy::approx_constant, - clippy::use_self, clippy::useless_transmute, clippy::missing_safety_doc )] |