This commit is contained in:
Igor Katson 2021-06-28 11:29:20 +01:00
parent 06136cc170
commit 205ce3265a
5 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
use crate::{buffers::ByteString, constants::CHUNK_SIZE, peer_comms::Piece};
use crate::{buffers::ByteString, constants::CHUNK_SIZE, peer_binary_protocol::Piece};
const fn is_power_of_two(x: u64) -> bool {
(x != 0) && ((x & (x - 1)) == 0)