Skip to content

Commit

Permalink
chore: make it compile with Rust 1.71 (#128)
Browse files Browse the repository at this point in the history
The current version won't compile with Rust 1.71:

    error: unnecessary qualification
        --> src/merkle.rs:2021:17
         |
    2021 |     iter: <I as std::iter::IntoIterator>::IntoIter,
         |                 ^^^^^^^^^^^^^^^^^^^^^^^
         |
    note: the lint level is defined here
        --> src/lib.rs:72:5
         |
    72   |     unused_qualifications,
         |     ^^^^^^^^^^^^^^^^^^^^^

    error: could not compile `merkletree` (lib) due to previous error

This commit fixes that error.
  • Loading branch information
vmx authored Aug 3, 2023
1 parent 16a679b commit f7baf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ pub fn populate_data<
I: IntoIterator<Item = Result<E>>,
>(
data: &mut S,
iter: <I as std::iter::IntoIterator>::IntoIter,
iter: I::IntoIter,
) -> Result<()> {
if !data.is_empty() {
return Ok(());
Expand Down

0 comments on commit f7baf4e

Please # to comment.