Skip to content

Commit 10f15a1

Browse files
authored
Upgrade Rust and fix clippy issues (#2717)
1 parent c8e23d3 commit 10f15a1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.82.0"
2+
channel = "1.83.0"
33
targets = ["wasm32-unknown-unknown"]

src/canister_tests/src/api/internet_identity.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! The functions here are derived (manually) from Internet Identity's Candid file
12
use candid::Principal;
23
use ic_cdk::api::management_canister::main::CanisterId;
34
use internet_identity_interface::archive::types::BufferedEntry;
@@ -11,8 +12,6 @@ pub mod api_v2;
1112
// API of verifiable credentials MVP.
1213
pub mod vc_mvp;
1314

14-
/** The functions here are derived (manually) from Internet Identity's Candid file */
15-
1615
/// A fake "health check" method that just checks the canister is alive a well.
1716
pub fn health_check(env: &PocketIc, canister_id: CanisterId) {
1817
let user_number: types::AnchorNumber = 0;

src/internet_identity/src/anchor_management/registration/captcha.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub fn random_string<T: RngCore>(rng: &mut T, n: usize) -> String {
8787
chars.push(next);
8888
}
8989

90-
return String::from_utf8_lossy(&chars).to_string();
90+
String::from_utf8_lossy(&chars).to_string()
9191
}
9292

9393
#[cfg(feature = "dummy_captcha")]

0 commit comments

Comments
 (0)