mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 14:23:32 +00:00
Remove allow(unknown_lints)
and clippy::if_then_panic
(#6000)
This commit is contained in:
parent
c20946d02f
commit
cf5798291f
@ -171,7 +171,6 @@ impl Test<'_> {
|
||||
.collect::<Vec<u8>>(),
|
||||
};
|
||||
|
||||
#[allow(unknown_lints, clippy::if_then_panic)]
|
||||
if &expected_data[..] != contents {
|
||||
panic!(
|
||||
"Test expectation is not met!\nBuffer content was:\n{:?}\nbut expected:\n{:?}",
|
||||
|
@ -207,8 +207,6 @@
|
||||
#![allow(
|
||||
// this happens on the GL backend, where it is both thread safe and non-thread safe in the same code.
|
||||
clippy::arc_with_non_send_sync,
|
||||
// for `if_then_panic` until it reaches stable
|
||||
unknown_lints,
|
||||
// We don't use syntax sugar where it's not necessary.
|
||||
clippy::match_like_matches_macro,
|
||||
// Redundant matching is more explicit.
|
||||
@ -221,8 +219,6 @@
|
||||
clippy::single_match,
|
||||
// Push commands are more regular than macros.
|
||||
clippy::vec_init_then_push,
|
||||
// "if panic" is a good uniform construct.
|
||||
clippy::if_then_panic,
|
||||
// We unsafe impl `Send` for a reason.
|
||||
clippy::non_send_fields_in_send_ty,
|
||||
// TODO!
|
||||
|
@ -1482,7 +1482,6 @@ impl Limits {
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct DownlevelLimits {}
|
||||
|
||||
#[allow(unknown_lints)] // derivable_impls is nightly only currently
|
||||
#[allow(clippy::derivable_impls)]
|
||||
impl Default for DownlevelLimits {
|
||||
fn default() -> Self {
|
||||
|
Loading…
Reference in New Issue
Block a user