Commit fb5ae60c authored by Lzu Tao's avatar Lzu Tao
Browse files

clippy: remove unused allow attributes

parent 8e16a8b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
#[allow(clippy::unusual_byte_groupings)]
pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&'static str> {
    let mut cfgs = vec![];

+1 −8
Original line number Diff line number Diff line
#![allow(
    clippy::inconsistent_digit_grouping,
    clippy::uninlined_format_args,
    clippy::unusual_byte_groupings
)]

#[cfg(feature = "bindgen")]
extern crate bindgen;
extern crate cc;
@@ -131,7 +125,6 @@ fn main() {
    }
}

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

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

/// Validates the header files found in `include_dir` and then returns the
/// version string of OpenSSL.
#[allow(clippy::manual_strip)] // we need to support pre-1.45.0
#[allow(clippy::unusual_byte_groupings)]
fn validate_headers(include_dirs: &[PathBuf]) -> Version {
    // This `*-sys` crate only works with OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0.0.
    // To correctly expose the right API from this crate, take a look at
+0 −4
Original line number Diff line number Diff line
#![allow(
    clippy::missing_safety_doc,
    clippy::unreadable_literal,
    clippy::uninlined_format_args,
    clippy::upper_case_acronyms,
    dead_code,
    non_camel_case_types,
    non_snake_case,
    non_upper_case_globals,
    overflowing_literals,
    unused_imports
)]
#![cfg_attr(feature = "unstable_boringssl", allow(ambiguous_glob_reexports))]