mirror of
https://github.com/openharmony/third_party_rust_which-rs.git
synced 2026-07-01 21:14:07 -04:00
Fix windows compilation error.
This commit is contained in:
@@ -75,12 +75,12 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
rust: [stable, nightly]
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Setup | Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
@@ -90,4 +90,4 @@ jobs:
|
||||
|
||||
# Run the ignored tests that expect the above setup
|
||||
- name: Build | Test
|
||||
run: cargo test --workspace --all-features -- -Z unstable-options --include-ignored
|
||||
run: cargo test --workspace --all-features -- -Z unstable-options --include-ignored
|
||||
|
||||
+1
-1
@@ -158,7 +158,7 @@ impl Finder {
|
||||
.map(|pathext| {
|
||||
pathext.split(';')
|
||||
.filter_map(|s| {
|
||||
if s.as_bytes().first() == Some(b'.') {
|
||||
if s.as_bytes().first() == Some(&b'.') {
|
||||
Some(s.to_owned())
|
||||
} else {
|
||||
// Invalid segment; just ignore it.
|
||||
|
||||
Reference in New Issue
Block a user