fix(rln): bubble the error

This commit is contained in:
rymnc 2022-10-31 12:16:25 +05:30
parent d939d276f9
commit 40265082ba
No known key found for this signature in database
GPG Key ID: C740033EE3F41EBD
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ impl RLN<'_> {
}
pub fn init_tree_with_leaves<R: Read>(&mut self, input_data: R) -> io::Result<()> {
return self.set_leaves_from(0, input_data);
return self.set_leaves_from(0, input_data)?;
}
// Set input leaf to the next available index