Skip to content

Commit 9bbdbbf

Browse files
committed
use % 2 == 0 instead of is_multiple_of to check parity,
to support older Rust versions
1 parent d06b2c0 commit 9bbdbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yamux/src/frame/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl StreamId {
298298
}
299299

300300
pub fn is_server(self) -> bool {
301-
self.0.is_multiple_of(2)
301+
self.0 % 2 == 0
302302
}
303303

304304
pub fn is_client(self) -> bool {

0 commit comments

Comments
 (0)