Fix build on rust 1.73

This commit is contained in:
Igor Katson 2023-12-05 20:08:37 +00:00
parent 9481ffcb32
commit 215bccb89c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ pub struct PeerConnectionOptions {
pub keep_alive_interval: Option<Duration>,
}
pub struct PeerConnection<H> {
pub(crate) struct PeerConnection<H> {
handler: H,
addr: SocketAddr,
info_hash: Id20,

View file

@ -24,7 +24,7 @@ use crate::{
spawn_utils::BlockingSpawner,
};
pub async fn read_metainfo_from_peer(
pub(crate) async fn read_metainfo_from_peer(
addr: SocketAddr,
peer_id: Id20,
info_hash: Id20,

View file

@ -452,7 +452,7 @@ impl ManagedTorrentBuilder {
self
}
pub fn spawner(&mut self, spawner: BlockingSpawner) -> &mut Self {
pub(crate) fn spawner(&mut self, spawner: BlockingSpawner) -> &mut Self {
self.spawner = Some(spawner);
self
}