Skip to content

Commit 413587f

Browse files
committed
Vector Scalars
Signed-off-by: Nicholas Gates <[email protected]>
1 parent f16c4eb commit 413587f

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

vortex-buffer/src/buffer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl<T> Buffer<T> {
246246
/// Requires that `begin <= end` and `end <= self.len()`.
247247
/// Also requires that both `begin` and `end` are aligned to the buffer's required alignment.
248248
#[inline(always)]
249-
pub fn slice(&self, range: impl RangeBounds<usize> + Clone + Debug) -> Self {
249+
pub fn slice(&self, range: impl RangeBounds<usize>) -> Self {
250250
self.slice_with_alignment(range, self.alignment)
251251
}
252252

@@ -257,7 +257,7 @@ impl<T> Buffer<T> {
257257
///
258258
/// Requires that `begin <= end` and `end <= self.len()`.
259259
#[inline(always)]
260-
pub fn slice_unaligned(&self, range: impl RangeBounds<usize> + Clone + Debug) -> Self {
260+
pub fn slice_unaligned(&self, range: impl RangeBounds<usize>) -> Self {
261261
self.slice_with_alignment(range, Alignment::of::<u8>())
262262
}
263263

@@ -270,7 +270,7 @@ impl<T> Buffer<T> {
270270
/// Also requires that both `begin` and `end` are aligned to the given alignment.
271271
pub fn slice_with_alignment(
272272
&self,
273-
range: impl RangeBounds<usize> + Clone,
273+
range: impl RangeBounds<usize>,
274274
alignment: Alignment,
275275
) -> Self {
276276
let len = self.len();

vortex-buffer/src/string.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use crate::ByteBuffer;
1010

1111
/// A wrapper around a [`ByteBuffer`] that guarantees that the buffer contains valid UTF-8.
1212
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
13-
#[repr(transparent)]
1413
pub struct BufferString(ByteBuffer);
1514

1615
impl BufferString {

vortex-mask/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ impl Mask {
392392
}
393393

394394
/// Slice the mask.
395-
#[inline]
396395
pub fn slice(&self, range: impl RangeBounds<usize>) -> Self {
397396
let start = match range.start_bound() {
398397
std::ops::Bound::Included(&s) => s,

0 commit comments

Comments
 (0)