Skip to content

Conversation

jxs
Copy link
Member

@jxs jxs commented Sep 23, 2025

to support older Rust versions

fixes #207


pub fn is_server(self) -> bool {
self.0.is_multiple_of(2)
self.0 % 2 == 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you might want to allow clippy::manual-is-multiple-of

@jxs jxs force-pushed the support-older-rust branch from 9bbdbbf to d3e8ff4 Compare September 24, 2025 11:04
@jxs jxs merged commit 68c2a4a into libp2p:master Sep 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_multiple_of in header.rs requires Rust 1.87.0 or newer

2 participants