Skip to content

Commit

Permalink
Fix a bug in RoundId round stack handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Nov 15, 2024
1 parent b8dc733 commit 608708f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manul/src/protocol/round.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use alloc::{
collections::{BTreeMap, BTreeSet},
format,
string::String,
vec,
vec::Vec,
};
use core::{
Expand All @@ -13,7 +12,7 @@ use core::{

use rand_core::CryptoRngCore;
use serde::{Deserialize, Serialize};
use tinyvec::{tiny_vec, TinyVec};
use tinyvec::TinyVec;

use super::{
errors::{FinalizeError, LocalError, MessageValidationError, ProtocolValidationError, ReceiveError},
Expand Down Expand Up @@ -57,8 +56,10 @@ impl Display for RoundId {
impl RoundId {
/// Creates a new round identifier.
pub fn new(round_num: u8) -> Self {
let mut round_nums = TinyVec::new();
round_nums.push(round_num);
Self {
round_nums: tiny_vec!(round_num, 0, 0, 0),
round_nums,
is_echo: false,
}
}
Expand Down

0 comments on commit 608708f

Please sign in to comment.