Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rust 0.73.0 #118

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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