From db63131c30013dac1e8880a31b2b3ea4622ca413 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Mon, 23 Sep 2024 02:35:11 +0800 Subject: [PATCH] chore: upgrade Rust toolchain to 1.81.0 --- rust-toolchain.toml | 2 +- src/block_id.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a87d2bd..e10c45a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.78.0" +channel = "1.81.0" components = ["rustfmt"] diff --git a/src/block_id.rs b/src/block_id.rs index b113f64..c786cb2 100644 --- a/src/block_id.rs +++ b/src/block_id.rs @@ -29,14 +29,14 @@ impl TypedValueParser for BlockIdParser { Ok(BlockId::Number(value.parse::().map_err(|err| { cmd.clone().error( ErrorKind::InvalidValue, - &format!("invalid block number: {}", err), + format!("invalid block number: {}", err), ) })?)) } else { Ok(BlockId::Hash(Felt::from_hex(value).map_err(|err| { cmd.clone().error( ErrorKind::InvalidValue, - &format!("invalid block hash: {}", err), + format!("invalid block hash: {}", err), ) })?)) }