Skip to content

Commit eef5fa3

Browse files
alexcrichtonehuss
authored andcommitted
Migrate from trim_right to trim_end
The `trim_right` method is soon to be deprecated!
1 parent 8f9114a commit eef5fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/custom_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl BuildOutput {
466466
let key = iter.next();
467467
let value = iter.next();
468468
let (key, value) = match (key, value) {
469-
(Some(a), Some(b)) => (a, b.trim_right()),
469+
(Some(a), Some(b)) => (a, b.trim_end()),
470470
// line started with `cargo:` but didn't match `key=value`
471471
_ => bail!("Wrong output in {}: `{}`", whence, line),
472472
};

0 commit comments

Comments
 (0)