diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index ce39239c2f4..02b913c058d 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -239,8 +239,7 @@ print("mingw", get_platform().startswith("mingw")) let abi_tag = soabi .split('-') .nth(1) - .map(ToString::to_string) - .expect("unable to parse ABI tag from SOABI"); + .map(ToString::to_string); let ext_suffix = map["ext_suffix"].to_string(); let implementation = map["implementation"].parse()?; @@ -282,7 +281,7 @@ print("mingw", get_platform().startswith("mingw")) shared, abi3, abi_flags: Some(abi_flags), - abi_tag: Some(abi_tag), + abi_tag, ext_suffix: Some(ext_suffix), lib_name: Some(lib_name), lib_dir,