You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: smt.rs
    path of file: ./repos/darkfi/src/sdk/src/crypto
    
    the code of the file until where you have to start completion: /* This file is part of DarkFi (https://dark.fi)
 *
 * Copyright (C) 2020-2024 Dyne.org foundation
 *
 * Copyright (C) 2021 Webb Technologies Inc.
 * Copyright (c) zkMove Authors
 * SPDX-License-Identifier: Apache-2.0
    
    pub fn new_sequential(leaves: &[F], hasher: &H, empty_leaf: &[u8; 64]) -> GenericResult<Self> {
        let pairs: BTreeMap<u32, F> =
            leaves.iter().enumerate().map(|(i, l)| (i as u32, *l)).collect();

        let smt = Self::new(&pairs, hasher, empty_leaf)?;

        Ok(smt)
    }