From 44b1bdbfe57ef8caa795c9bc5d966305638cafe8 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 6 Jun 2022 23:20:09 +1000 Subject: [PATCH] Fix use of `ends_with` Signed-off-by: Jiahao XU --- src/target.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/target.rs b/src/target.rs index 6a24d98f..0794546f 100644 --- a/src/target.rs +++ b/src/target.rs @@ -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")