Skip to content

Commit

Permalink
chore: Update MSRV to 1.78 (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity authored Dec 20, 2024
1 parent 86c4a43 commit f1caf8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repository = "https://github.com/dfinity/agent-rs"
# MSRV
# Avoid updating this field unless we use new Rust features
# Sync rust-version in rust-toolchain.toml
rust-version = "1.75.0"
rust-version = "1.78.0"
license = "Apache-2.0"

[workspace.dependencies]
Expand Down
7 changes: 4 additions & 3 deletions ref-tests/tests/ic-ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ mod management_canister {
.call_and_wait()
.await;

assert!(matches!(result,
assert!(
matches!(result,
Err(AgentError::UncertifiedReject(RejectResponse {
reject_code: RejectCode::DestinationInvalid,
ref reject_message,
error_code: Some(ref error_code)
})) if reject_message == "Canister 75hes-oqbaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q not found" &&
error_code == "IC0301") ||
matches!(result, Err(HttpError(content)) if content.status == 400 && content.content == b"Canister 75hes-oqbaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q does not belong to any subnet.")
error_code == "IC0301")
|| matches!(result, Err(HttpError(content)) if content.status == 400 && content.content == b"Canister 75hes-oqbaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q does not belong to any subnet.")
);

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# MSRV
# Avoid updating this field unless we use new Rust features
# Sync rust-version in workspace Cargo.toml
channel = "1.75.0"
channel = "1.78.0"
components = ["rustfmt", "clippy"]
targets = ["wasm32-unknown-unknown"]

0 comments on commit f1caf8a

Please sign in to comment.