Skip to content

Commit

Permalink
Merge pull request #70 from fjarri/fix-round-id
Browse files Browse the repository at this point in the history
Fix a bug in `RoundId` round stack handling
  • Loading branch information
fjarri authored Nov 15, 2024
2 parents b8dc733 + 608708f commit 7193470
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 7193470

Please sign in to comment.