Remove allow(unknown_lints) and clippy::if_then_panic (#6000)

This commit is contained in:
Bruce Mitchener 2024-07-20 10:35:19 +07:00 committed by GitHub
parent c20946d02f
commit cf5798291f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 6 deletions

View File

@ -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{:?}",

View File

@ -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!

View File

@ -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 {