Skip to content

Commit

Permalink
Update shale/src/lib.rs
Browse files Browse the repository at this point in the history
Remove trait bounds

Co-authored-by: Richard Pringle <richard.pringle@avalabs.org>
Signed-off-by: Ron Kuris <swcafe@gmail.com>
  • Loading branch information
rkuris and richardpringle authored Nov 1, 2023
1 parent 78b3b57 commit c8b77b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shale/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub trait ShaleStore<T: Storable> {
/// A stored item type that can be decoded from or encoded to on-disk raw bytes. An efficient
/// implementation could be directly transmuting to/from a POD struct. But sometimes necessary
/// compression/decompression is needed to reduce disk I/O and facilitate faster in-memory access.
pub trait Storable: Debug + Send + Sync {
pub trait Storable {
fn dehydrated_len(&self) -> u64;
fn dehydrate(&self, to: &mut [u8]) -> Result<(), ShaleError>;
fn hydrate<T: CachedStore>(addr: usize, mem: &T) -> Result<Self, ShaleError>
Expand Down

0 comments on commit c8b77b8

Please sign in to comment.