make clippy happy

This commit is contained in:
Rene Leveille 2020-08-18 22:14:14 -04:00
parent 7beb272075
commit 455ec80a98
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ fn ends_with(entry: &DirEntry, pat: &str) -> bool {
/// [1]: https://github.com/python/cpython/blob/3.5/Lib/sysconfig.py#L389
fn find_sysconfigdata(cross: &CrossCompileConfig) -> Result<PathBuf> {
let mut sysconfig_paths = search_lib_dir(&cross.lib_dir, &cross);
if sysconfig_paths.len() == 0 {
if sysconfig_paths.is_empty() {
bail!(
"Could not find either libpython.so or _sysconfigdata*.py in {}",
cross.lib_dir.display()