mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
add must_use for Future (#450)
This commit is contained in:
committed by
Toralf Wittner
parent
02576eecf1
commit
ee9be6f0c9
@ -519,6 +519,7 @@ pub struct Message {
|
||||
}
|
||||
|
||||
/// Implementation of `Future` that must be driven to completion in order for floodsub to work.
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
pub struct FloodSubFuture {
|
||||
inner: Box<Future<Item = (), Error = IoError>>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user