Skip to content

Commit

Permalink
Auto merge of #6417 - alexcrichton:deprecated, r=ehuss
Browse files Browse the repository at this point in the history
Migrate from trim_right to trim_end

The `trim_right` method is soon to be deprecated!
  • Loading branch information
bors committed Dec 11, 2018
2 parents 7d27033 + 9054b7c commit 2cf1f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/custom_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down

0 comments on commit 2cf1f5d

Please sign in to comment.