mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-21 04:48:07 +00:00
fix warns
This commit is contained in:
@@ -23,6 +23,7 @@ pub struct PooledObject<T> {
|
||||
}
|
||||
|
||||
impl<T> PooledObject<T> {
|
||||
#[allow(dead_code)]
|
||||
fn new(object: Box<T>, pool: Arc<Mutex<VecDeque<Box<T>>>>, max_size: usize) -> Self {
|
||||
Self { object: Some(object), pool, max_size }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user