mirror of https://github.com/vacp2p/zerokit.git
fix(rln): bubble the error
This commit is contained in:
parent
d939d276f9
commit
40265082ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue