v0.1.2: fix unimplemented todos...

This commit is contained in:
Olivier 'reivilibre' 2023-05-08 23:45:02 +01:00
parent b01cc2b6fa
commit 0474d88a67
5 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "byte_lamination"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Olivier 'reivilibre'"]
repository = "https://git.emunest.net/reivilibre/byte_lamination.git"

View File

@ -32,7 +32,7 @@ impl<'a, T> ByteLamination<'a> for Zstd<'a, T> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.bytes.into_owned()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {

View File

@ -8,7 +8,7 @@ impl<'a> ByteLamination<'a> for Cow<'a, [u8]> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.into_owned()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
@ -22,7 +22,7 @@ impl<'a> ByteLamination<'a> for Vec<u8> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
@ -36,7 +36,7 @@ impl<'a> ByteLamination<'a> for String {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.into_bytes()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {
@ -53,7 +53,7 @@ impl<'a> ByteLamination<'a> for Cow<'a, str> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.into_owned().into_bytes()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {

View File

@ -33,7 +33,7 @@ impl<'a, T> ByteLamination<'a> for SerdeBare<'a, T> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.bytes.into_owned()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {

View File

@ -33,7 +33,7 @@ impl<'a, T> ByteLamination<'a> for SerdeCbor<'a, T> {
}
fn into_bytes(self) -> Vec<u8> {
todo!()
self.bytes.into_owned()
}
fn try_from_bytes(bytes: Cow<'a, [u8]>) -> Result<Self, Box<dyn Error>> {