Skip to content

Commit

Permalink
simpllify
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jan 5, 2024
1 parent 2e6b2d7 commit af50578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Use the minimum supported Rust version
if: matrix.rust == 'msrv'
run: |
msrv="$(cargo metadata --format-version 1 | jq -r '.packages | .[] | select(.name == "stellar-xdr") | .rust_version')"
msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | min | .rust_version')"
rustup override set $msrv
rustup component add clippy --toolchain $msrv
- name: Disable warnings and clippy checks on latest
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Use the minimum supported Rust version
if: matrix.rust == 'msrv'
run: |
msrv="$(cargo metadata --format-version 1 | jq -r '.packages | .[] | select(.name == "stellar-xdr") | .rust_version')"
msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | min | .rust_version')"
rustup override set $msrv
rustup component add clippy --toolchain $msrv
- name: Disable warnings and clippy checks on latest
Expand Down

0 comments on commit af50578

Please sign in to comment.