Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The enum `EitherCart` in `Yoke` crate theoretically implements `Deref` and `StableDeref` traits. However, it does not support the dereferenced type `T` being Unsized (like `[u8]`). As a result, types like `EitherCart<Arc<[u8]>, Box<[u8]>>` cause compiler errors, making this enum less useful. In this pull request, I have relaxed the trait bound of `T` to support unsized types. This change should be safe as the origin `Deref` already allows Unsized `T`. --------- Co-authored-by: zhongyi51 <[email protected]>
- Loading branch information