Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Try to enforce more recent Rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius de Bruijn committed Feb 20, 2023
1 parent 90c54db commit 0a9a865
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +32,7 @@ jobs:
with:
components: rustfmt
override: true
toolchain: stable
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -64,6 +66,9 @@ jobs:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- uses: actions/cache@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions src/tests/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2035,8 +2035,8 @@ fn value_into_json(value: &Value) -> Option<serde_json::Value> {
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)
}
Expand Down

0 comments on commit 0a9a865

Please sign in to comment.