diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c25e34..ce2a1a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ env: # version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still # come automatically. If the version specified here is no longer the latest stable version, # then please feel free to submit a PR that adjusts it along with the potential clippy fixes. - RUST_STABLE_VER: "1.93" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7 + RUST_STABLE_VER: "1.95" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7 # The purpose of checking with the minimum supported Rust toolchain is to detect its staleness. # If the compilation fails, then the version specified here needs to be bumped up to reality. # Be sure to also update the rust-version property in the workspace Cargo.toml file, @@ -85,7 +85,7 @@ jobs: name: formatting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install stable toolchain uses: dtolnay/rust-toolchain@master @@ -119,7 +119,7 @@ jobs: matrix: os: [windows-latest, macos-latest, ubuntu-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install stable toolchain uses: dtolnay/rust-toolchain@master @@ -151,7 +151,7 @@ jobs: name: cargo clippy (wasm32) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install stable toolchain uses: dtolnay/rust-toolchain@master @@ -183,7 +183,7 @@ jobs: matrix: os: [windows-latest, macos-latest, ubuntu-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install stable toolchain uses: dtolnay/rust-toolchain@master @@ -210,7 +210,7 @@ jobs: name: cargo test (wasm32) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install stable toolchain uses: dtolnay/rust-toolchain@master @@ -241,7 +241,7 @@ jobs: matrix: os: [windows-latest, macos-latest, ubuntu-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install msrv toolchain uses: dtolnay/rust-toolchain@master @@ -269,7 +269,7 @@ jobs: name: cargo check (msrv) (wasm32) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install msrv toolchain uses: dtolnay/rust-toolchain@master @@ -296,7 +296,7 @@ jobs: # If we get per-platform docs (win/macos/linux/wasm32/..) then doc jobs should match that. runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: install nightly toolchain uses: dtolnay/rust-toolchain@nightly @@ -316,7 +316,7 @@ jobs: typos: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: check typos - uses: crate-ci/typos@v1.39.0 + uses: crate-ci/typos@v1.45.2 diff --git a/crates/message-format-runtime/src/catalog.rs b/crates/message-format-runtime/src/catalog.rs index ebf736c..5320e4b 100644 --- a/crates/message-format-runtime/src/catalog.rs +++ b/crates/message-format-runtime/src/catalog.rs @@ -727,13 +727,11 @@ fn advance_control_state( opcode: decoded.opcode, })?; } - vm::OP_CASE_STR | vm::OP_CASE_DEFAULT => { - if state.select_depth == 0 { - return Err(CatalogError::InvalidSelectSequence { - pc: decoded.pc, - opcode: decoded.opcode, - }); - } + vm::OP_CASE_STR | vm::OP_CASE_DEFAULT if state.select_depth == 0 => { + return Err(CatalogError::InvalidSelectSequence { + pc: decoded.pc, + opcode: decoded.opcode, + }); } vm::OP_SELECT_END => { if state.select_depth == 0 {