浏览代码

Restructuring to allow-unused

Ryan Summers 3 年之前
父节点
当前提交
02d565a3a3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/storage/packet_buffer.rs

+ 1 - 1
src/storage/packet_buffer.rs

@@ -181,7 +181,7 @@ impl<'a, H> PacketBuffer<'a, H> {
     }
 
     /// Reset the packet buffer and clear any staged.
-    #[cfg(feature = "socket-udp")]
+    #[allow(unused)]
     pub(crate) fn reset(&mut self) {
         self.payload_ring.clear();
         self.metadata_ring.clear();