Skip to content

Commit 6817061

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents acc2133 + 77f5705 commit 6817061

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "value-log"
33
description = "Value log implementation for key-value separated LSM storage"
44
license = "MIT OR Apache-2.0"
5-
version = "1.5.2"
5+
version = "1.5.3"
66
edition = "2021"
77
rust-version = "1.74.0"
88
readme = "README.md"

src/slice/slice_default.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,15 @@ impl From<String> for Slice {
5757
Self(ByteView::from(value.into_bytes()))
5858
}
5959
}
60+
61+
impl From<ByteView> for Slice {
62+
fn from(value: ByteView) -> Self {
63+
Self(value)
64+
}
65+
}
66+
67+
impl From<Slice> for ByteView {
68+
fn from(value: Slice) -> Self {
69+
value.0
70+
}
71+
}

0 commit comments

Comments
 (0)