Skip to content

Commit

Permalink
Simplify PhantomData in ObjectSafeRoundWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Feb 10, 2025
1 parent 3eeb9aa commit 9b00b83
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manul/src/protocol/object_safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ pub(crate) trait ObjectSafeRound<Id: PartyId>: 'static + Debug + Send + Sync {
}
}

// The `fn(Id) -> Id` bit is so that `ObjectSafeRoundWrapper` didn't require a bound on `Id` to be
// `Send + Sync`.
// The `fn(Id)` bit is so that `ObjectSafeRoundWrapper` didn't require a bound on `Id` to be `Send + Sync`.
#[derive(Debug)]
pub(crate) struct ObjectSafeRoundWrapper<Id, R> {
round: R,
phantom: PhantomData<fn(Id) -> Id>,
phantom: PhantomData<fn(Id)>,
}

impl<Id, R> ObjectSafeRoundWrapper<Id, R>
Expand Down

0 comments on commit 9b00b83

Please sign in to comment.