diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0fb6c0f8..86504a7c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,10 +29,12 @@ jobs: - uses: actions/checkout@v2 - name: Install target - run: rustup target add wasm32-wasip1 + run: | + rustup toolchain add 1.81.0 + rustup target add --toolchain 1.81.0 wasm32-wasip1 - name: Build (all features enabled) - run: cargo build --verbose --target wasm32-wasip1 -p russh + run: cargo +1.81.0 build --verbose --target wasm32-wasip1 -p russh Formatting: runs-on: ubuntu-24.04 diff --git a/russh-config/src/lib.rs b/russh-config/src/lib.rs index 2637f290..a269d364 100644 --- a/russh-config/src/lib.rs +++ b/russh-config/src/lib.rs @@ -189,6 +189,7 @@ impl SshConfigStrExt for &str { && ((self.starts_with('\'') && self.ends_with('\'')) || (self.starts_with('\"') && self.ends_with('\"'))) { + #[allow(clippy::indexing_slicing)] // length checked &self[1..self.len() - 1] } else { self diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 22048ac5..8142c301 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.70.0" +channel = "1.73.0"