Skip to content

Commit a4a798d

Browse files
committed
require all vectors to be sized
Signed-off-by: Connor Tsui <[email protected]>
1 parent c6e025a commit a4a798d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

vortex-vector/src/ops.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use vortex_mask::{Mask, MaskMut};
99
use crate::{Vector, VectorMut, private};
1010

1111
/// Common operations for immutable vectors (all the variants of [`Vector`]).
12-
pub trait VectorOps: private::Sealed + Into<Vector> {
12+
pub trait VectorOps: private::Sealed + Into<Vector> + Sized {
1313
/// The mutable equivalent of this immutable vector.
1414
type Mutable: VectorMutOps<Immutable = Self>;
1515

@@ -38,13 +38,11 @@ pub trait VectorOps: private::Sealed + Into<Vector> {
3838
/// # Errors
3939
///
4040
/// If `self` is not unique, this will fail and return `self` back to the caller.
41-
fn try_into_mut(self) -> Result<Self::Mutable, Self>
42-
where
43-
Self: Sized;
41+
fn try_into_mut(self) -> Result<Self::Mutable, Self>;
4442
}
4543

4644
/// Common operations for mutable vectors (all the variants of [`VectorMut`]).
47-
pub trait VectorMutOps: private::Sealed + Into<VectorMut> {
45+
pub trait VectorMutOps: private::Sealed + Into<VectorMut> + Sized {
4846
/// The immutable equivalent of this mutable vector.
4947
type Immutable: VectorOps<Mutable = Self>;
5048

0 commit comments

Comments
 (0)