mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 03:30:03 +00:00
Just unwrap it
This commit is contained in:
parent
ea10736e13
commit
fa56a729b0
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ mod linux {
|
||||||
fn create_target_str(libc_version: &str, abi: &str) -> String {
|
fn create_target_str(libc_version: &str, abi: &str) -> String {
|
||||||
let prefix = TARGET
|
let prefix = TARGET
|
||||||
.rsplit_once('-')
|
.rsplit_once('-')
|
||||||
.map(|s| format!("{}-", s.0))
|
.expect("unwrap: TARGET always has a -")
|
||||||
.unwrap_or_default();
|
.0;
|
||||||
|
|
||||||
format!("{prefix}{libc_version}{abi}")
|
format!("{prefix}{libc_version}{abi}")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue