mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Adjust lints for Rust clippy 1.51
This commit is contained in:
committed by
Dzmitry Malyshau
parent
7d042337e2
commit
372b2d314e
@@ -1,4 +1,4 @@
|
||||
#![allow(clippy::panic, clippy::needless_lifetimes)]
|
||||
#![allow(clippy::panic, clippy::needless_lifetimes, clippy::upper_case_acronyms)]
|
||||
use pomelo::pomelo;
|
||||
pomelo! {
|
||||
//%verbose;
|
||||
|
||||
@@ -20,13 +20,16 @@ emitted in order to take effect. This happens in one of the following ways:
|
||||
|
||||
!*/
|
||||
|
||||
// TODO: use `strip_prefix` instead when Rust 1.45 <= MSRV
|
||||
#![allow(
|
||||
renamed_and_removed_lints,
|
||||
unknown_lints, // requires Rust 1.51
|
||||
clippy::new_without_default,
|
||||
clippy::unneeded_field_pattern,
|
||||
clippy::match_like_matches_macro
|
||||
clippy::match_like_matches_macro,
|
||||
clippy::manual_strip,
|
||||
clippy::unknown_clippy_lints,
|
||||
)]
|
||||
// TODO: use `strip_prefix` instead when Rust 1.45 <= MSRV
|
||||
#![allow(clippy::manual_strip, clippy::unknown_clippy_lints)]
|
||||
#![warn(
|
||||
trivial_casts,
|
||||
trivial_numeric_casts,
|
||||
|
||||
Reference in New Issue
Block a user