Skip to content

Commit 283fc93

Browse files
committed
make work on Rust 1.70
1 parent 5e22ea3 commit 283fc93

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ jobs:
6565
run: |
6666
cargo check --workspace --target ${{ matrix.target }}
6767
cargo check --workspace --target ${{ matrix.target }} --features regex
68-
cargo check --workspace --target ${{ matrix.target }} --no-default-features
69-
cargo check --workspace --target ${{ matrix.target }} --no-default-features --features regex
7068
71-
- name: Check wasm32-unknown-unknown
72-
if: ${{ matrix.target == 'wasm32-unknown-unknown' }}
69+
- name: Build | Check (no default features)
7370
run: |
7471
cargo check --workspace --target ${{ matrix.target }} --no-default-features
7572
cargo check --workspace --target ${{ matrix.target }} --no-default-features --features regex
@@ -98,7 +95,7 @@ jobs:
9895
- name: Build | Test
9996
run: cargo test --workspace --all-features -- --include-ignored
10097

101-
- name: Test (no default features)
98+
- name: Build | Test (no default features)
10299
run: cargo test --workspace --no-default-features
103100
cargo-deny:
104101
runs-on: ubuntu-22.04

tests/basic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,8 @@ mod in_memory {
807807
.collect::<Vec<_>>();
808808
Ok(Box::new(entries.into_iter()))
809809
}
810-
_ => Err(Error::new(ErrorKind::NotADirectory, "Not a directory")),
810+
// should use ErrorKind::NotADirectory once upgrading rust version
811+
_ => Err(Error::new(ErrorKind::Other, "Not a directory")),
811812
}
812813
}
813814

0 commit comments

Comments
 (0)