From 170e3926eccc42c16ce94c39ccc4082871626fea Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Mon, 23 Jan 2023 10:01:15 -0500 Subject: [PATCH] Fix sys clippy lints --- ffmpeg-sys-the-third/build.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ffmpeg-sys-the-third/build.rs b/ffmpeg-sys-the-third/build.rs index ecf3d9c..fce8cce 100644 --- a/ffmpeg-sys-the-third/build.rs +++ b/ffmpeg-sys-the-third/build.rs @@ -80,10 +80,7 @@ impl ParseCallbacks for Callbacks { let codec_flag_prefix = "AV_CODEC_FLAG_"; let error_max_size = "AV_ERROR_MAX_STRING_SIZE"; - if value >= i64::min_value() as i64 - && value <= i64::max_value() as i64 - && _name.starts_with(ch_layout_prefix) - { + if _name.starts_with(ch_layout_prefix) { Some(IntKind::ULongLong) } else if value >= i32::min_value() as i64 && value <= i32::max_value() as i64 @@ -632,7 +629,7 @@ fn maybe_search_include(include_paths: &[PathBuf], header: &str) -> Option