Skip to content

Commit

Permalink
refactor!: remove redundant CapsuleKey bytes() API
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryConrad committed Dec 12, 2023
1 parent bd8ff2c commit 50c1439
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rearch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,9 @@ where
/// If you are making an incremental computation focused application,
/// then you may need dynamic capsules.
pub struct CapsuleKey(CapsuleKeyType);
impl CapsuleKey {
#[must_use]
pub fn bytes(bytes: Vec<u8>) -> Self {
Self(CapsuleKeyType::Bytes(bytes))
}
}
impl From<Vec<u8>> for CapsuleKey {
fn from(bytes: Vec<u8>) -> Self {
Self::bytes(bytes)
Self(CapsuleKeyType::Bytes(bytes))
}
}

Expand Down

0 comments on commit 50c1439

Please sign in to comment.