Skip to content

Commit

Permalink
serde: Box
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 19, 2024
1 parent 6fda823 commit 5b1ed74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_allocator/src/boxed/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ where
where
D: Deserializer<'de>,
{
Ok(Box(std::boxed::Box::deserialize(deserializer)?))
Ok(Box::new(T::deserialize(deserializer)?))
}
}

0 comments on commit 5b1ed74

Please sign in to comment.