Fix clippy warning and add wsl configuration for windows

pull/39/head
Chip Senkbeil 3 years ago
parent 34d6b574c1
commit dd5181d282
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -29,6 +29,8 @@ jobs:
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: Check Cargo availability - name: Check Cargo availability
run: cargo --version run: cargo --version
- uses: Vampire/setup-wsl@v1
if: ${{ matrix.os == 'windows-latest' }}
- run: cargo test --verbose -p distant-core - run: cargo test --verbose -p distant-core
- run: cargo test --verbose --all-features -p distant-core - run: cargo test --verbose --all-features -p distant-core
@ -41,6 +43,7 @@ jobs:
include: include:
- { rust: stable, os: ubuntu-latest } - { rust: stable, os: ubuntu-latest }
- { rust: stable, os: macos-latest } - { rust: stable, os: macos-latest }
- { rust: stable, os: windows-latest }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust }} - name: Install Rust ${{ matrix.rust }}
@ -52,6 +55,8 @@ jobs:
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: Check Cargo availability - name: Check Cargo availability
run: cargo --version run: cargo --version
- uses: Vampire/setup-wsl@v1
if: ${{ matrix.os == 'windows-latest' }}
- run: cargo test --verbose - run: cargo test --verbose
clippy: clippy:

@ -45,7 +45,7 @@ impl State {
debug!("<Conn @ {:?}> Closing stdin to all processes", conn_id); debug!("<Conn @ {:?}> Closing stdin to all processes", conn_id);
if let Some(ids) = self.client_processes.get(&conn_id) { if let Some(ids) = self.client_processes.get(&conn_id) {
for id in ids { for id in ids {
if let Some(process) = self.processes.get_mut(&id) { if let Some(process) = self.processes.get_mut(id) {
trace!( trace!(
"<Conn @ {:?}> Closing stdin for proc {}", "<Conn @ {:?}> Closing stdin for proc {}",
conn_id, conn_id,

Loading…
Cancel
Save