Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed Nov 20, 2019
1 parent 57d5782 commit b1b6da1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,14 +860,8 @@ pub trait AsFixedBytes: Sized + AsRef<[u8]> {
/// The length in bytes
fn len(&self) -> usize;
}
// impl<'a> AsFixedBytes for &'a [u8] {
// // TODO - This does not feel right?
// fn len(&self) -> usize {
// 1
// }
// }
impl AsFixedBytes for &[u8] {
// TODO - This does not feel right?

impl<'a> AsFixedBytes for &'a [u8] {
fn len(&self) -> usize {
1
}
Expand Down

0 comments on commit b1b6da1

Please sign in to comment.