Skip to content

Commit

Permalink
chore: Update Rust toolchain (#1252)
Browse files Browse the repository at this point in the history
- Updated Rust toolchain version to `1.79` for better development environment
- Simplified logic in `coprocessor/trie/mod.rs` by eliminating redundant `enumerate()` in `zip()` method use.
  • Loading branch information
huitseeker authored Jun 25, 2024
1 parent 7febc96 commit c075887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[toolchain]
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
profile = "default"
channel = "1.78"
channel = "1.79"
targets = [ "wasm32-unknown-unknown" ]

3 changes: 1 addition & 2 deletions src/coprocessor/trie/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ impl<'a, F: LurkField, const ARITY: usize, const HEIGHT: usize> Trie<'a, F, ARIT
.iter()
.zip(preimage_path)
.rev()
.enumerate()
.map(|(_i, (path_index, existing_preimage))| {
.map(|(path_index, existing_preimage)| {
let mut new_preimage = *existing_preimage;
new_preimage[*path_index] = value;
let new_hash = self.register_hash(new_preimage);
Expand Down

0 comments on commit c075887

Please sign in to comment.