mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 07:11:38 +00:00
add must_use for Future (#450)
This commit is contained in:
committed by
Toralf Wittner
parent
02576eecf1
commit
ee9be6f0c9
@ -222,6 +222,7 @@ where
|
||||
}
|
||||
|
||||
/// Future that must be driven to completion in order for the swarm to work.
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
pub struct SwarmFuture<T, H>
|
||||
where
|
||||
T: MuxedTransport + 'static, // TODO: 'static :-/
|
||||
|
Reference in New Issue
Block a user