Skip to content

Commit

Permalink
fix: remove unwrap in decode_populate (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich authored Jul 3, 2023
1 parent ca37a23 commit 96b150d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/dyn-abi/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl<'a> DynToken<'a> {

new_tokens
.iter_mut()
.for_each(|t| t.decode_populate(&mut child).unwrap());
.try_for_each(|t| t.decode_populate(&mut child))?;

*contents = new_tokens.into();
}
Expand Down

0 comments on commit 96b150d

Please sign in to comment.