bug 1543945: geckodriver: replace str::trim_right() with ::trim_end(); r=jgraham
authorAndreas Tolfsen <ato@sny.no>
Fri, 12 Apr 2019 10:32:20 +0000
changeset 469264 4b8cb5cb5d7a841bf3761868a96313a2fa1ce71e
parent 469263 85272d58ac1a65a2e03c78c0ffb6ba8134f38b8f
child 469265 650ab6bfa91aca539aecc86fd73aff5d9e32b07e
push id112776
push usershindli@mozilla.com
push dateFri, 12 Apr 2019 16:20:17 +0000
treeherdermozilla-inbound@b4501ced5619 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1543945
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1543945: geckodriver: replace str::trim_right() with ::trim_end(); r=jgraham str::trim_right() is deprecated and has been superseded by ::trim_end(). Differential Revision: https://phabricator.services.mozilla.com/D27251
testing/geckodriver/build.rs
--- a/testing/geckodriver/build.rs
+++ b/testing/geckodriver/build.rs
@@ -66,17 +66,17 @@ impl Hg {
         S: AsRef<OsStr>,
     {
         Command::new("hg")
             .env("HGPLAIN", "1")
             .args(args)
             .output()
             .ok()
             .and_then(|r| String::from_utf8(r.stdout).ok())
-            .map(|s| s.trim_right().into())
+            .map(|s| s.trim_end().into())
     }
 }
 
 impl BuildInfo for Hg {
     fn hash(&self) -> Option<String> {
         self.exec(&["log", "-r.", "-T{node|short}"])
     }
 
@@ -94,17 +94,17 @@ impl Git {
         S: AsRef<OsStr>,
     {
         Command::new("git")
             .env("GIT_CONFIG_NOSYSTEM", "1")
             .args(args)
             .output()
             .ok()
             .and_then(|r| String::from_utf8(r.stdout).ok())
-            .map(|s| s.trim_right().into())
+            .map(|s| s.trim_end().into())
     }
 
     fn to_hg_sha(&self, git_sha: String) -> Option<String> {
         self.exec(&["cinnabar", "git2hg", &git_sha])
     }
 }
 
 impl BuildInfo for Git {