Skip to content

Commit

Permalink
unify
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 15, 2024
1 parent f682fd4 commit 3843256
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/swc_common/src/plugin/serialized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ impl PluginSerializedBytes {
rkyv::access::<VersionedSerializable<W>, rkyv::rancor::Failure>(&self.field[..])?
};

archived
.deserialize(&mut rkyv::de::Unify::new())
.with_context(|| format!("failed to deserialize `{}`", type_name::<W>()))
let result =
archived.deserialize(rkyv::rancor::Strategy::wrap(&mut rkyv::de::Unify::new()));

result.with_context(|| format!("failed to deserialize `{}`", type_name::<W>()))
}
}

Expand Down

0 comments on commit 3843256

Please sign in to comment.