From 9054b7c4cb297a0f7ea161e16e058b541aac41fc Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 10 Dec 2018 18:00:43 -0800 Subject: [PATCH] Migrate from trim_right to trim_end The `trim_right` method is soon to be deprecated! --- src/cargo/core/compiler/custom_build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/custom_build.rs b/src/cargo/core/compiler/custom_build.rs index 594e165d03a..892459338f8 100644 --- a/src/cargo/core/compiler/custom_build.rs +++ b/src/cargo/core/compiler/custom_build.rs @@ -466,7 +466,7 @@ impl BuildOutput { let key = iter.next(); let value = iter.next(); let (key, value) = match (key, value) { - (Some(a), Some(b)) => (a, b.trim_right()), + (Some(a), Some(b)) => (a, b.trim_end()), // line started with `cargo:` but didn't match `key=value` _ => bail!("Wrong output in {}: `{}`", whence, line), };