More lint fixes
I whine about CI moving without my control, then forget to update my local rustc 🤡
- Id
- 78c5ae16af8484d05050b77dd22f361d9216d776
- Author
- Caio
- Commit time
- 2024-03-08T09:29:15+01:00
Modified src/lib.rs
/// restarting a process running Foca so that you can get
/// back up quickly with low risk of accepting stale
/// knowledge as truthful
- pub fn iter_membership_state(&self) -> impl Iterator<Item = &Member<T>> + ExactSizeIterator {
+ pub fn iter_membership_state(&self) -> impl ExactSizeIterator<Item = &Member<T>> {
self.members.inner.iter()
}
Modified src/member.rs
/// XXX This used to be a `next_members()` which would make use of the
/// already shuffled state and then simply advance the cursor
- /// to trigger the next shuffle-after-round-robin that next()
+ /// to trigger the next shuffle-after-round-robin that `next()`
/// does. However I'm not sure it was a good idea: the point
- /// of what next() does is giving some sort of determinism giving
+ /// of what `next()` does is giving some sort of determinism giving
/// a high chance that every member will be *pinged* periodically
/// and using the same logic for other "pick random member"
/// mechanisms might break the math.