Fix windows compilation error.

This commit is contained in:
xl000
2022-01-24 17:21:01 +08:00
parent 91debdc2da
commit fcb35a03d6
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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
View File
@@ -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.