Skip to content

Commit 4393051

Browse files
committed
Replace future deprecated call
The trim_right_matches method is deprecating in 1.33 in favor of trim_end_matches (see rust-lang/rust#52994).
1 parent ac72fa6 commit 4393051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ impl Build {
17191719
} else if self.get_host()? != target {
17201720
// CROSS_COMPILE is of the form: "arm-linux-gnueabi-"
17211721
let cc_env = self.getenv("CROSS_COMPILE");
1722-
let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-'));
1722+
let cross_compile = cc_env.as_ref().map(|s| s.trim_end_matches('-'));
17231723
let prefix = cross_compile.or(match &target[..] {
17241724
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"),
17251725
"aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"),

0 commit comments

Comments
 (0)