Skip to content

Commit

Permalink
test(consensus): remove warning on into mock propsal part (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware authored Dec 4, 2024
1 parent 63eac4a commit 3b3e3e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sequencing/papyrus_consensus/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ impl TryFrom<MockProposalPart> for ProposalInit {
}
}

impl Into<Vec<u8>> for MockProposalPart {
fn into(self) -> Vec<u8> {
vec![self.0 as u8]
impl From<MockProposalPart> for Vec<u8> {
fn from(part: MockProposalPart) -> Vec<u8> {
vec![u8::try_from(part.0).expect("Invalid MockProposalPart conversion")]
}
}

Expand Down

0 comments on commit 3b3e3e5

Please sign in to comment.