mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Fix use of ends_with
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3f7f293b78
commit
44b1bdbfe5
1 changed files with 4 additions and 4 deletions
|
@ -120,13 +120,13 @@ mod linux {
|
|||
}
|
||||
|
||||
const fn parse_abi() -> &'static str {
|
||||
if TARGET.endswith("abi64") {
|
||||
if TARGET.ends_with("abi64") {
|
||||
"abi64"
|
||||
} else if TARGET.endswith("eabi") {
|
||||
} else if TARGET.ends_with("eabi") {
|
||||
"eabi"
|
||||
} else if TARGET.endswith("eabihf") {
|
||||
} else if TARGET.ends_with("eabihf") {
|
||||
"eabihf"
|
||||
} else if TARGET.endswith("gnu") || TARGET.endswith("musl") {
|
||||
} else if TARGET.ends_with("gnu") || TARGET.ends_with("musl") {
|
||||
""
|
||||
} else {
|
||||
panic!("Unknown abi")
|
||||
|
|
Loading…
Add table
Reference in a new issue