Skip to content

Commit 9d1f4af

Browse files
committed
relax the HeedDecode bound on Lazy::remap
1 parent 39c77f1 commit 9d1f4af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

heed-types/src/lazy_decode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ pub struct Lazy<'a, C> {
2424
_phantom: marker::PhantomData<C>,
2525
}
2626

27-
impl<'a, C: heed_traits::BytesDecode<'a>> Lazy<'a, C> {
27+
impl<'a, C> Lazy<'a, C> {
2828
/// Change the codec type of the given bytes, specifying the new codec.
2929
pub fn remap<NC>(&self) -> Lazy<'a, NC> {
3030
Lazy { data: self.data, _phantom: marker::PhantomData }
3131
}
32+
}
3233

34+
impl<'a, C: heed_traits::BytesDecode<'a>> Lazy<'a, C> {
3335
/// Decode the given bytes as `DItem`.
3436
pub fn decode(&self) -> Result<C::DItem, BoxedError> {
3537
C::bytes_decode(self.data)

0 commit comments

Comments
 (0)