Skip to content

Commit

Permalink
Use Rust 0.73.0 (#118)
Browse files Browse the repository at this point in the history
<!-- The PR description should answer 2 (maybe 3) important questions:
-->

### What

Bump nix flake, bump Rust toolchain, fix suggestions.

### How

<!-- How is it trying to accomplish it (what are the implementation
steps)? -->
  • Loading branch information
danieljharvey authored Oct 31, 2023
1 parent eae6acb commit f315646
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
9 changes: 3 additions & 6 deletions crates/tests/databases-tests/src/capabilities_tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#[cfg(test)]
mod capabilities_tests {
#[tokio::test]
async fn get_capabilities() {
insta::assert_json_snapshot!(ndc_postgres::capabilities::get_capabilities());
}
#[tokio::test]
async fn get_capabilities() {
insta::assert_json_snapshot!(ndc_postgres::capabilities::get_capabilities());
}
17 changes: 9 additions & 8 deletions crates/tests/tests-common/src/schemas.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::fmt::Write;
/// Checks that a given value conforms to the schema generated by `schemars`.
///
/// Panics with a human-readable error if the value does not conform, or if the
Expand All @@ -17,14 +18,14 @@ pub fn check_value_conforms_to_schema<T: schemars::JsonSchema>(value: serde_json
Err(errors) => {
panic!(
"The configuration does not conform to the schema.\n{}",
errors
.map(|error| {
format!(
"{}\ninstance path: {}\nschema path: {}\n\n",
error, error.instance_path, error.schema_path
)
})
.collect::<String>()
errors.fold(String::new(), |mut str, error| {
let _ = write!(
str,
"{}\ninstance path: {}\nschema path: {}\n\n",
error, error.instance_path, error.schema_path
);
str
})
)
}
}
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.72.1"
channel = "1.73.0"
profile = "default" # see https://rust-lang.github.io/rustup/concepts/profiles.html
components = ["rust-analyzer", "rust-src"] # see https://rust-lang.github.io/rustup/concepts/components.html

0 comments on commit f315646

Please sign in to comment.