Skip to content

Commit

Permalink
Don't require Vector types to be sized (e.g. slices)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Mar 25, 2024
1 parent 3e5c78e commit cf7d63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ macro_rules! impl_AsRef {
($ty: ty) => {
impl<T> Vector<$ty> for T
where
T: AsRef<[$ty]> + AsMut<[$ty]>,
T: AsRef<[$ty]> + AsMut<[$ty]> + ?Sized,
{
fn len(&self) -> usize {
self.as_ref().len()
Expand Down

0 comments on commit cf7d63a

Please sign in to comment.