String::trim_right() is deprecated, causing build warning

RESOLVED FIXED in Firefox 68

Status

defect
P1
normal
RESOLVED FIXED
2 months ago
2 months ago

People

(Reporter: ato, Assigned: ato)

Tracking

Version 3
mozilla68
Points:
---

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

2 months ago

String::trim_right() is deprecated and has been superseded
by ::trim_end().

./mach build
[…]
 0:11.18 warning: use of deprecated item 'core::str::<impl str>::trim_right': superseded by `trim_end`
 0:11.18   --> testing/geckodriver/build.rs:74:24
 0:11.18    |
 0:11.18 74 |             .map(|s| s.trim_right().into())
 0:11.18    |                        ^^^^^^^^^^
 0:11.18    |
 0:11.18    = note: #[warn(deprecated)] on by default
 0:11.19 warning: use of deprecated item 'core::str::<impl str>::trim_right': superseded by `trim_end`
 0:11.19    --> testing/geckodriver/build.rs:102:24
 0:11.19     |
 0:11.19 102 |             .map(|s| s.trim_right().into())
 0:11.19     |                    
Assignee

Updated

2 months ago
Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: -- → P1
Assignee

Comment 1

2 months ago

str::trim_right() is deprecated and has been superseded by ::trim_end().

Comment 2

2 months ago
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4b8cb5cb5d7a
geckodriver: replace str::trim_right() with ::trim_end(); r=jgraham

Comment 3

2 months ago
bugherder
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.