Skip to content

Commit

Permalink
fix(boc): allow unsized boc-related types to serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Oct 19, 2024
1 parent b65137e commit 6312e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boc/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<T> From<T> for SerdeBoc<T> {
}
}

impl<T: SerializeAsBoc> Serialize for SerdeBoc<T> {
impl<T: SerializeAsBoc + ?Sized> Serialize for SerdeBoc<T> {
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
self.0.serialize_as_boc(serializer)
}
Expand Down

0 comments on commit 6312e7b

Please sign in to comment.