Skip to content

Commit 0f2e162

Browse files
committed
isable some lints in the patched crates D
(this also does a bit of re-formatting but I do not care anymore)
1 parent d76b531 commit 0f2e162

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

crossbeam-utils-0.8.19/src/lib.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,14 @@
2626
2727
#![doc(test(
2828
no_crate_inject,
29-
attr(
30-
deny(warnings, rust_2018_idioms),
31-
allow(dead_code, unused_assignments, unused_variables)
32-
)
29+
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_assignments, unused_variables))
3330
))]
34-
#![warn(
35-
missing_docs,
36-
missing_debug_implementations,
37-
rust_2018_idioms,
38-
unreachable_pub
39-
)]
31+
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms, unreachable_pub)]
4032
#![cfg_attr(not(feature = "std"), no_std)]
33+
#![allow(unexpected_cfgs)]
34+
#![allow(rustc::default_hash_types)]
35+
#![allow(unused_imports)]
36+
#![allow(elided_lifetimes_in_paths)]
4137

4238
#[cfg(crossbeam_loom)]
4339
#[allow(unused_imports)]

miniz_oxide-0.7.2/src/lib.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ fn roundtrip(data: &[u8]) {
2222
# roundtrip(b"Test_data test data lalalal blabla");
2323
"##
2424
)]
25+
#![allow(elided_lifetimes_in_paths)]
26+
#![allow(unexpected_cfgs)]
27+
#![allow(unused_imports)]
2528
#![forbid(unsafe_code)]
2629
#![cfg_attr(not(feature = "std"), no_std)]
2730

@@ -158,11 +161,7 @@ pub enum DataFormat {
158161

159162
impl DataFormat {
160163
pub fn from_window_bits(window_bits: i32) -> DataFormat {
161-
if window_bits > 0 {
162-
DataFormat::Zlib
163-
} else {
164-
DataFormat::Raw
165-
}
164+
if window_bits > 0 { DataFormat::Zlib } else { DataFormat::Raw }
166165
}
167166

168167
pub fn to_window_bits(self) -> i32 {
@@ -190,11 +189,7 @@ pub struct StreamResult {
190189
impl StreamResult {
191190
#[inline]
192191
pub const fn error(error: MZError) -> StreamResult {
193-
StreamResult {
194-
bytes_consumed: 0,
195-
bytes_written: 0,
196-
status: Err(error),
197-
}
192+
StreamResult { bytes_consumed: 0, bytes_written: 0, status: Err(error) }
198193
}
199194
}
200195

regex-1.8.4/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@ another matching engine with fixed memory requirements.
643643
#![deny(missing_docs)]
644644
#![cfg_attr(feature = "pattern", feature(pattern))]
645645
#![warn(missing_debug_implementations)]
646+
#![allow(unused_imports)]
647+
#![allow(elided_lifetimes_in_paths)]
648+
#![allow(rustc::default_hash_types)]
649+
#![allow(rustc::potential_query_instability)]
646650

647651
#[cfg(not(feature = "std"))]
648652
compile_error!("`std` feature is currently required to build this crate");
@@ -756,6 +760,7 @@ enabled.
756760
In general, one should expect performance on `&[u8]` to be roughly similar to
757761
performance on `&str`.
758762
*/
763+
759764
#[cfg(feature = "std")]
760765
pub mod bytes {
761766
pub use crate::re_builder::bytes::*;

0 commit comments

Comments
 (0)