Skip to content

Commit fb5ae60

Browse files
committed
clippy: remove unused allow attributes
1 parent 8e16a8b commit fb5ae60

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

openssl-sys/build/cfgs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(clippy::unusual_byte_groupings)]
12
pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&'static str> {
23
let mut cfgs = vec![];
34

openssl-sys/build/main.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#![allow(
2-
clippy::inconsistent_digit_grouping,
3-
clippy::uninlined_format_args,
4-
clippy::unusual_byte_groupings
5-
)]
6-
71
#[cfg(feature = "bindgen")]
82
extern crate bindgen;
93
extern crate cc;
@@ -131,7 +125,6 @@ fn main() {
131125
}
132126
}
133127

134-
#[allow(clippy::let_and_return)]
135128
fn postprocess(include_dirs: &[PathBuf]) -> Version {
136129
let version = validate_headers(include_dirs);
137130

@@ -146,7 +139,7 @@ fn postprocess(include_dirs: &[PathBuf]) -> Version {
146139

147140
/// Validates the header files found in `include_dir` and then returns the
148141
/// version string of OpenSSL.
149-
#[allow(clippy::manual_strip)] // we need to support pre-1.45.0
142+
#[allow(clippy::unusual_byte_groupings)]
150143
fn validate_headers(include_dirs: &[PathBuf]) -> Version {
151144
// This `*-sys` crate only works with OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0.0.
152145
// To correctly expose the right API from this crate, take a look at

openssl-sys/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#![allow(
22
clippy::missing_safety_doc,
3-
clippy::unreadable_literal,
4-
clippy::uninlined_format_args,
5-
clippy::upper_case_acronyms,
63
dead_code,
74
non_camel_case_types,
85
non_snake_case,
96
non_upper_case_globals,
10-
overflowing_literals,
117
unused_imports
128
)]
139
#![cfg_attr(feature = "unstable_boringssl", allow(ambiguous_glob_reexports))]

0 commit comments

Comments
 (0)