Openssl + a bunch of other refactorings
This commit is contained in:
parent
b4b22ea9a4
commit
34dd074310
15 changed files with 151 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue