From 0a9a865236ae891e79816e5c54a1318e7b1bcabb Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Mon, 20 Feb 2023 14:43:09 +0100 Subject: [PATCH] Try to enforce more recent Rust toolchain --- .github/workflows/test.yml | 5 +++++ src/tests/query.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e6a7a9e0..3008bae75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: with: components: clippy override: true + toolchain: stable - name: Install dependencies run: sudo apt install -y openssl libkrb5-dev - uses: actions-rs/clippy-check@v1 @@ -31,6 +32,7 @@ jobs: with: components: rustfmt override: true + toolchain: stable - uses: mbrobbel/rustfmt-check@master with: token: ${{ secrets.GITHUB_TOKEN }} @@ -64,6 +66,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true - uses: actions/cache@v2 with: diff --git a/src/tests/query.rs b/src/tests/query.rs index 0b331fdc8..ad0d177f7 100644 --- a/src/tests/query.rs +++ b/src/tests/query.rs @@ -2035,8 +2035,8 @@ fn value_into_json(value: &Value) -> Option { match value.clone() { // MariaDB returns JSON as text Value::Text(Some(text)) => { - let json: serde_json::Value = - serde_json::from_str(&text).unwrap_or_else(|_| panic!("expected parsable text to json, found {text}")); + let json: serde_json::Value = serde_json::from_str(&text) + .unwrap_or_else(|_| panic!("expected parsable text to json, found {}", text)); Some(json) }