Remove allow(unused).

This commit is contained in:
David Craven 2019-02-05 21:22:45 +01:00
parent 89d2172d8d
commit f9207f0712
No known key found for this signature in database
GPG Key ID: DF438712EA50DBB1
2 changed files with 0 additions and 5 deletions

View File

@ -74,13 +74,11 @@ impl Ledger {
}
/// Gets the number of sent blocks.
#[allow(unused)]
pub fn sent_blocks(&self) -> usize {
self.sent_blocks
}
/// Gets the number of received blocks.
#[allow(unused)]
pub fn received_blocks(&self) -> usize {
self.received_blocks
}
@ -139,7 +137,6 @@ impl<T> Message<T> {
}
/// Removes the block from the message.
#[allow(unused)]
pub fn remove_block(&mut self, cid: &Cid) {
self.blocks.drain_filter(|block| &block.cid() == cid);
}
@ -155,7 +152,6 @@ impl<T> Message<T> {
}
/// Removes the block from the want list.
#[allow(unused)]
pub fn remove_want_block(&mut self, cid: &Cid) {
self.want.remove(cid);
}

View File

@ -14,7 +14,6 @@ pub struct BitswapConfig {}
impl BitswapConfig {
/// Builds a new `BitswapConfig`.
#[allow(unused)]
pub fn new() -> BitswapConfig {
BitswapConfig {}
}