diff options
| author | klensy <klensy@users.noreply.github.com> | 2023-06-12 18:31:42 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2023-06-12 18:31:42 +0300 |
| commit | af36fbfc336f176a43a42addfaa12d48163b7e12 (patch) | |
| tree | 830657bdfbb6bda872c8b3b16fbe69f0d650c33f /src/tools/rustdoc-gui-test | |
| parent | fd0a3313f7a64cb16533030e49a271db449368c3 (diff) | |
few fixes to rust rustdoc-gui tests on windows
Diffstat (limited to 'src/tools/rustdoc-gui-test')
| -rw-r--r-- | src/tools/rustdoc-gui-test/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustdoc-gui-test/src/main.rs b/src/tools/rustdoc-gui-test/src/main.rs index 3f60a90f87a..f9929f1f80d 100644 --- a/src/tools/rustdoc-gui-test/src/main.rs +++ b/src/tools/rustdoc-gui-test/src/main.rs @@ -20,7 +20,7 @@ fn get_browser_ui_test_version_inner(npm: &Path, global: bool) -> Option<String> .unwrap_or(String::new()); lines .lines() - .find_map(|l| l.split(':').nth(1)?.strip_prefix("browser-ui-test@")) + .find_map(|l| l.rsplit(':').next()?.strip_prefix("browser-ui-test@")) .map(|v| v.to_owned()) } |
