diff --git a/crates/librqbit/src/peer_state.rs b/crates/librqbit/src/peer_state.rs index 492e8bc..2f22fb8 100644 --- a/crates/librqbit/src/peer_state.rs +++ b/crates/librqbit/src/peer_state.rs @@ -10,12 +10,9 @@ pub enum PeerState { } pub struct LivePeerState { - #[allow(unused)] - peer_id: [u8; 20], + pub peer_id: [u8; 20], pub i_am_choked: bool, - #[allow(unused)] pub peer_choked: bool, - #[allow(unused)] pub peer_interested: bool, pub outstanding_requests: Arc, pub have_notify: Arc, diff --git a/crates/librqbit/src/torrent_state.rs b/crates/librqbit/src/torrent_state.rs index 12a3b3f..963aa6e 100644 --- a/crates/librqbit/src/torrent_state.rs +++ b/crates/librqbit/src/torrent_state.rs @@ -13,7 +13,7 @@ use anyhow::Context; use futures::{stream::FuturesUnordered, StreamExt}; use log::{debug, warn}; use parking_lot::{Mutex, RwLock}; -use tokio::sync::{mpsc::Sender, Notify, Semaphore}; +use tokio::sync::mpsc::Sender; use crate::{ buffers::ByteString,