Merge pull request #2774 from sobolevn/fixes-clippy

Fixes clippy on macos
This commit is contained in:
Jeong YunWon
2021-08-02 03:59:38 +09:00
committed by GitHub

View File

@@ -98,6 +98,7 @@ mod _io {
StaticType, TryFromObject, TypeProtocol,
};
#[allow(clippy::let_and_return)]
fn validate_whence(whence: i32) -> bool {
let x = (0..=2).contains(&whence);
cfg_if::cfg_if! {