From 10f15a13bdfe0e9e3f3699d0fb5a5282bddd452c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7=20Muntaner?= Date: Fri, 29 Nov 2024 10:28:16 +0100 Subject: [PATCH] Upgrade Rust and fix clippy issues (#2717) --- rust-toolchain.toml | 2 +- src/canister_tests/src/api/internet_identity.rs | 3 +-- .../src/anchor_management/registration/captcha.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 06f5df86b0..8c05b81d59 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.82.0" +channel = "1.83.0" targets = ["wasm32-unknown-unknown"] diff --git a/src/canister_tests/src/api/internet_identity.rs b/src/canister_tests/src/api/internet_identity.rs index 33c5c37467..e800606e77 100644 --- a/src/canister_tests/src/api/internet_identity.rs +++ b/src/canister_tests/src/api/internet_identity.rs @@ -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; @@ -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; diff --git a/src/internet_identity/src/anchor_management/registration/captcha.rs b/src/internet_identity/src/anchor_management/registration/captcha.rs index 71bcac4cd4..ab798e6e36 100644 --- a/src/internet_identity/src/anchor_management/registration/captcha.rs +++ b/src/internet_identity/src/anchor_management/registration/captcha.rs @@ -87,7 +87,7 @@ pub fn random_string(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")]