Openssl + a bunch of other refactorings

This commit is contained in:
Igor Katson 2021-06-28 20:40:13 +01:00
parent b4b22ea9a4
commit 34dd074310
15 changed files with 151 additions and 26 deletions

View file

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