fix warns

This commit is contained in:
Wood
2025-10-04 08:44:07 +08:00
parent bb927628b2
commit 77caa39f0c
5 changed files with 5 additions and 4 deletions
+1
View File
@@ -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 }
}