diff --git a/pageserver/src/tenant/storage_layer/inmemory_layer/vectored_dio_read.rs b/pageserver/src/tenant/storage_layer/inmemory_layer/vectored_dio_read.rs index 0cb26465ff..3598a37483 100644 --- a/pageserver/src/tenant/storage_layer/inmemory_layer/vectored_dio_read.rs +++ b/pageserver/src/tenant/storage_layer/inmemory_layer/vectored_dio_read.rs @@ -11,10 +11,6 @@ use crate::{ context::RequestContext, }; -mod sealed { - pub trait Sealed {} -} - /// The file interface we require. At runtime, this is a [`crate::virtual_file::VirtualFile`]. pub trait File: Send { async fn read_at_to_end<'a, 'b, B: IoBufMut + Send>( @@ -58,7 +54,7 @@ impl LogicalRead { } /// The buffer into which a [`LogicalRead`] result is placed. -pub trait Buffer: sealed::Sealed + std::ops::Deref { +pub trait Buffer: std::ops::Deref { /// Immutable. fn cap(&self) -> usize; /// Changes only through [`Self::extend_from_slice`]. @@ -387,7 +383,6 @@ impl RwLockRefCell { } } -impl sealed::Sealed for Vec {} impl Buffer for Vec { fn cap(&self) -> usize { self.capacity()