Just unwrap it

This commit is contained in:
Félix Saparelli 2022-06-08 01:42:25 +12:00
parent ea10736e13
commit fa56a729b0
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -123,8 +123,8 @@ mod linux {
fn create_target_str(libc_version: &str, abi: &str) -> String {
let prefix = TARGET
.rsplit_once('-')
.map(|s| format!("{}-", s.0))
.unwrap_or_default();
.expect("unwrap: TARGET always has a -")
.0;
format!("{prefix}{libc_version}{abi}")
}