Skip to content

Commit

Permalink
fix: remove litigious From implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Sep 29, 2024
1 parent 8362a22 commit 86143b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions zenoh-ext/src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ impl From<ZSerializer> for ZBytes {
}
}

impl From<ZBytesWriter> for ZSerializer {
fn from(value: ZBytesWriter) -> Self {
Self(value)
}
}

#[derive(Debug)]
pub struct ZDeserializer<'a>(ZBytesReader<'a>);

Expand Down Expand Up @@ -129,12 +123,6 @@ impl<'a> ZDeserializer<'a> {
}
}

impl<'a> From<ZBytesReader<'a>> for ZDeserializer<'a> {
fn from(value: ZBytesReader<'a>) -> Self {
Self(value)
}
}

pub struct ZReadIter<'a, 'b, T: Deserialize> {
deserializer: &'b mut ZDeserializer<'a>,
len: usize,
Expand Down
9 changes: 0 additions & 9 deletions zenoh/src/api/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,6 @@ impl From<ZBytesWriter> for ZBytes {
}
}

impl From<ZBytes> for ZBytesWriter {
fn from(value: ZBytes) -> Self {
Self {
zbuf: value.0,
vec: vec![],
}
}
}

impl std::io::Write for ZBytesWriter {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
std::io::Write::write(&mut self.vec, buf)
Expand Down

0 comments on commit 86143b5

Please sign in to comment.