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