Skip to content

Commit

Permalink
removed Into<(PreUnit, Data)> for FullUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
fixxxedpoint committed Apr 23, 2024
1 parent a56156c commit 1effa2c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions consensus/src/units/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,6 @@ impl<H: Hasher, D: Data> Clone for FullUnit<H, D> {
}
}

impl<H: Hasher, D: Data> From<FullUnit<H, D>> for (PreUnit<H>, Option<D>) {
fn from(value: FullUnit<H, D>) -> Self {
(value.pre_unit, value.data)
}
}

impl<H: Hasher, D: Data> FullUnit<H, D> {
pub(crate) fn new(pre_unit: PreUnit<H>, data: Option<D>, session_id: SessionId) -> Self {
FullUnit {
Expand Down

0 comments on commit 1effa2c

Please sign in to comment.