diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3619af51..a3f45d3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: + toolchain: stable components: clippy, rustfmt - uses: Swatinem/rust-cache@v2 - name: Check formatting @@ -34,6 +35,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --all-features @@ -49,6 +52,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - uses: Swatinem/rust-cache@v2 - name: Build run: cargo build --release @@ -60,6 +65,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - uses: Swatinem/rust-cache@v2 - name: Build docs run: cargo doc --no-deps diff --git a/.github/workflows/crates-publish.yml b/.github/workflows/crates-publish.yml index bf621ac2..76c12482 100644 --- a/.github/workflows/crates-publish.yml +++ b/.github/workflows/crates-publish.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - uses: Swatinem/rust-cache@v2 - name: Verify version matches tag diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b96e40d..c2f79810 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: + toolchain: stable targets: ${{ matrix.target }} - run: cargo build --release --target ${{ matrix.target }} - name: Rename binary diff --git a/src/working_set.rs b/src/working_set.rs index dfbfff3f..a97a027e 100644 --- a/src/working_set.rs +++ b/src/working_set.rs @@ -389,7 +389,9 @@ fn clean_relative(path: &Path) -> PathBuf { } fn path_to_string(path: &Path) -> Option { - path.as_os_str().to_str().map(ToOwned::to_owned) + path.as_os_str() + .to_str() + .map(|s| s.replace('\\', "/")) } fn extract_paths_from_message(message: &Message) -> Vec {