diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb41c16..c138fa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,8 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Check Cargo availability run: cargo --version + - uses: Vampire/setup-wsl@v1 + if: ${{ matrix.os == 'windows-latest' }} - run: cargo test --verbose -p distant-core - run: cargo test --verbose --all-features -p distant-core @@ -41,6 +43,7 @@ jobs: include: - { rust: stable, os: ubuntu-latest } - { rust: stable, os: macos-latest } + - { rust: stable, os: windows-latest } steps: - uses: actions/checkout@v2 - name: Install Rust ${{ matrix.rust }} @@ -52,6 +55,8 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Check Cargo availability run: cargo --version + - uses: Vampire/setup-wsl@v1 + if: ${{ matrix.os == 'windows-latest' }} - run: cargo test --verbose clippy: diff --git a/core/src/server/distant/state.rs b/core/src/server/distant/state.rs index 59485d5..8651733 100644 --- a/core/src/server/distant/state.rs +++ b/core/src/server/distant/state.rs @@ -45,7 +45,7 @@ impl State { debug!(" Closing stdin to all processes", conn_id); if let Some(ids) = self.client_processes.get(&conn_id) { for id in ids { - if let Some(process) = self.processes.get_mut(&id) { + if let Some(process) = self.processes.get_mut(id) { trace!( " Closing stdin for proc {}", conn_id,