Skip to content
Prev Previous commit
Next Next commit
isable some lints in the patched crates D
(this also does a bit of re-formatting but I do not care anymore)
  • Loading branch information
WaffleLapkin committed Apr 2, 2024
commit 975f6af20eb86f2f69d5c9f197c345b00eb28c8d
16 changes: 6 additions & 10 deletions crossbeam-utils-0.8.19/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@

#![doc(test(
no_crate_inject,
attr(
deny(warnings, rust_2018_idioms),
allow(dead_code, unused_assignments, unused_variables)
)
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_assignments, unused_variables))
))]
#![warn(
missing_docs,
missing_debug_implementations,
rust_2018_idioms,
unreachable_pub
)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)]
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(rustc::default_hash_types)]
#![allow(unused_imports)]
#![allow(elided_lifetimes_in_paths)]

#[cfg(crossbeam_loom)]
#[allow(unused_imports)]
Expand Down
15 changes: 5 additions & 10 deletions miniz_oxide-0.7.2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ fn roundtrip(data: &[u8]) {
# roundtrip(b"Test_data test data lalalal blabla");
"##
)]
#![allow(elided_lifetimes_in_paths)]
#![allow(unexpected_cfgs)]
#![allow(unused_imports)]
#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "std"), no_std)]

Expand Down Expand Up @@ -158,11 +161,7 @@ pub enum DataFormat {

impl DataFormat {
pub fn from_window_bits(window_bits: i32) -> DataFormat {
if window_bits > 0 {
DataFormat::Zlib
} else {
DataFormat::Raw
}
if window_bits > 0 { DataFormat::Zlib } else { DataFormat::Raw }
}

pub fn to_window_bits(self) -> i32 {
Expand Down Expand Up @@ -190,11 +189,7 @@ pub struct StreamResult {
impl StreamResult {
#[inline]
pub const fn error(error: MZError) -> StreamResult {
StreamResult {
bytes_consumed: 0,
bytes_written: 0,
status: Err(error),
}
StreamResult { bytes_consumed: 0, bytes_written: 0, status: Err(error) }
}
}

Expand Down
5 changes: 5 additions & 0 deletions regex-1.8.4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@ another matching engine with fixed memory requirements.
#![deny(missing_docs)]
#![cfg_attr(feature = "pattern", feature(pattern))]
#![warn(missing_debug_implementations)]
#![allow(unused_imports)]
#![allow(elided_lifetimes_in_paths)]
#![allow(rustc::default_hash_types)]
#![allow(rustc::potential_query_instability)]

#[cfg(not(feature = "std"))]
compile_error!("`std` feature is currently required to build this crate");
Expand Down Expand Up @@ -756,6 +760,7 @@ enabled.
In general, one should expect performance on `&[u8]` to be roughly similar to
performance on `&str`.
*/

#[cfg(feature = "std")]
pub mod bytes {
pub use crate::re_builder::bytes::*;
Expand Down