Skip to content

Commit

Permalink
Upgrade Rust and fix clippy issues (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner authored Nov 29, 2024
1 parent c8e23d3 commit 10f15a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.82.0"
channel = "1.83.0"
targets = ["wasm32-unknown-unknown"]
3 changes: 1 addition & 2 deletions src/canister_tests/src/api/internet_identity.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! The functions here are derived (manually) from Internet Identity's Candid file
use candid::Principal;
use ic_cdk::api::management_canister::main::CanisterId;
use internet_identity_interface::archive::types::BufferedEntry;
Expand All @@ -11,8 +12,6 @@ pub mod api_v2;
// API of verifiable credentials MVP.
pub mod vc_mvp;

/** The functions here are derived (manually) from Internet Identity's Candid file */

/// A fake "health check" method that just checks the canister is alive a well.
pub fn health_check(env: &PocketIc, canister_id: CanisterId) {
let user_number: types::AnchorNumber = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn random_string<T: RngCore>(rng: &mut T, n: usize) -> String {
chars.push(next);
}

return String::from_utf8_lossy(&chars).to_string();
String::from_utf8_lossy(&chars).to_string()
}

#[cfg(feature = "dummy_captcha")]
Expand Down

0 comments on commit 10f15a1

Please sign in to comment.