From b04d24f282e688f3e22d1595031a74e70e86aa97 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Thu, 1 Feb 2024 15:55:35 +0000 Subject: [PATCH] chore: upgrade to rust 1.75.0 --- rust-toolchain.toml | 2 +- src/account.rs | 2 +- src/subcommands/account/deploy.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 2afc200..37048e4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.70.0" +channel = "1.75.0" components = ["rustfmt"] diff --git a/src/account.rs b/src/account.rs index ce77f8e..98ebe93 100644 --- a/src/account.rs +++ b/src/account.rs @@ -389,7 +389,7 @@ impl AccountConfig { match &undeployed_status.context { Some(DeploymentContext::Braavos(context)) => { // Safe to unwrap as we already checked for length - match braavos.signers.get(0).unwrap() { + match braavos.signers.first().unwrap() { BraavosSigner::Stark(stark_signer) => { Ok(get_contract_address( undeployed_status.salt, diff --git a/src/subcommands/account/deploy.rs b/src/subcommands/account/deploy.rs index 057ed24..d10b845 100644 --- a/src/subcommands/account/deploy.rs +++ b/src/subcommands/account/deploy.rs @@ -158,7 +158,7 @@ impl Deploy { match &undeployed_status.context { Some(DeploymentContext::Braavos(context)) => { // Safe to unwrap as we already checked for length - match braavos_config.signers.get(0).unwrap() { + match braavos_config.signers.first().unwrap() { BraavosSigner::Stark(stark_signer) => { // Makes sure we're using the right key if signer_public_key != stark_signer.public_key {