Skip to content

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Sep 13, 2023
1 parent c4acd08 commit 4e74ace
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/rlp/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,17 @@ pub const fn const_add(a: usize, b: usize) -> usize {
a + b
}

/// A trait for types that have a maximum encoded length.
///
/// # Safety
/// Invalid value can cause the encoder to crash.
#[doc(hidden)]
pub unsafe trait MaxEncodedLen<const LEN: usize>: Encodable {}

/// A trait for types that have a maximum encoded length
///
/// # Safety
/// Invalid value can cause the encoder to crash.
#[doc(hidden)]
pub unsafe trait MaxEncodedLenAssoc: Encodable {
const LEN: usize;
Expand Down

0 comments on commit 4e74ace

Please sign in to comment.