Skip to content

Commit

Permalink
chore: upgrade Rust toolchain to 1.81.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Sep 22, 2024
1 parent 22db631 commit db63131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.78.0"
channel = "1.81.0"
components = ["rustfmt"]
4 changes: 2 additions & 2 deletions src/block_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ impl TypedValueParser for BlockIdParser {
Ok(BlockId::Number(value.parse::<u64>().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),
)
})?))
}
Expand Down

0 comments on commit db63131

Please sign in to comment.