Skip to content

Commit cf57982

Browse files
Remove allow(unknown_lints) and clippy::if_then_panic (#6000)
1 parent c20946d commit cf57982

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

player/tests/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ impl Test<'_> {
171171
.collect::<Vec<u8>>(),
172172
};
173173

174-
#[allow(unknown_lints, clippy::if_then_panic)]
175174
if &expected_data[..] != contents {
176175
panic!(
177176
"Test expectation is not met!\nBuffer content was:\n{:?}\nbut expected:\n{:?}",

wgpu-hal/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@
207207
#![allow(
208208
// this happens on the GL backend, where it is both thread safe and non-thread safe in the same code.
209209
clippy::arc_with_non_send_sync,
210-
// for `if_then_panic` until it reaches stable
211-
unknown_lints,
212210
// We don't use syntax sugar where it's not necessary.
213211
clippy::match_like_matches_macro,
214212
// Redundant matching is more explicit.
@@ -221,8 +219,6 @@
221219
clippy::single_match,
222220
// Push commands are more regular than macros.
223221
clippy::vec_init_then_push,
224-
// "if panic" is a good uniform construct.
225-
clippy::if_then_panic,
226222
// We unsafe impl `Send` for a reason.
227223
clippy::non_send_fields_in_send_ty,
228224
// TODO!

wgpu-types/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,6 @@ impl Limits {
14821482
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
14831483
pub struct DownlevelLimits {}
14841484

1485-
#[allow(unknown_lints)] // derivable_impls is nightly only currently
14861485
#[allow(clippy::derivable_impls)]
14871486
impl Default for DownlevelLimits {
14881487
fn default() -> Self {

0 commit comments

Comments
 (0)