Allow false positive `clippy::unnecessary-wraps` lint

This commit is contained in:
messense 2022-05-14 19:33:16 +08:00
parent 742774cdb5
commit ded0d9fc93
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ print("mingw", get_platform().startswith("mingw"))
})
}
#[allow(clippy::unnecessary_wraps)]
pub fn fixup_import_libs(&mut self) -> Result<()> {
let target = target_triple_from_env();
if self.lib_name.is_none() && target.operating_system == OperatingSystem::Windows {