File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl<'a> Resettable for PacketBuffer<'a> {
51
51
}
52
52
53
53
/// An UDP packet ring buffer.
54
- pub type SocketBuffer < ' a , ' b : ' a > = RingBuffer < ' a , PacketBuffer < ' b > > ;
54
+ pub type SocketBuffer < ' a , ' b : ' a > = RingBuffer < ' a , PacketBuffer < ' b > > ;
55
55
56
56
/// An User Datagram Protocol socket.
57
57
///
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ mod test {
594
594
595
595
#[ test]
596
596
fn test_buffer_get_unallocated ( ) {
597
- let mut ring = RingBuffer :: new ( vec ! [ b'.' ; 12 ] ) ; ;
597
+ let mut ring = RingBuffer :: new ( vec ! [ b'.' ; 12 ] ) ;
598
598
599
599
assert_eq ! ( ring. get_unallocated( 16 , 4 ) , b"" ) ;
600
600
@@ -643,7 +643,7 @@ mod test {
643
643
644
644
#[ test]
645
645
fn test_buffer_get_allocated ( ) {
646
- let mut ring = RingBuffer :: new ( vec ! [ b'.' ; 12 ] ) ; ;
646
+ let mut ring = RingBuffer :: new ( vec ! [ b'.' ; 12 ] ) ;
647
647
648
648
assert_eq ! ( ring. get_allocated( 16 , 4 ) , b"" ) ;
649
649
assert_eq ! ( ring. get_allocated( 0 , 4 ) , b"" ) ;
You can’t perform that action at this time.
0 commit comments