Skip to content

Commit

Permalink
Make ProposalMessageDescription non_exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
stefunctional committed Jan 23, 2024
1 parent d02c2b7 commit 51b3391
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mls-rs/src/group/message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ impl TryFrom<Sender> for ProposalSender {
safer_ffi_gen::ffi_type(clone, opaque)
)]
#[derive(Debug, Clone)]
#[non_exhaustive]
/// Description of a processed MLS proposal message.
pub struct ProposalMessageDescription {
/// Sender of the proposal.
Expand All @@ -284,8 +285,8 @@ pub struct ProposalMessageDescription {
pub proposal: Proposal,
/// Plaintext authenticated data in the received MLS packet.
pub authenticated_data: Vec<u8>,
#[cfg(feature = "by_ref_proposal")]
pub(crate) proposal_ref: ProposalRef,
/// Proposal reference.
pub proposal_ref: ProposalRef,
}

#[cfg(feature = "by_ref_proposal")]
Expand Down

0 comments on commit 51b3391

Please sign in to comment.