Skip to content

Commit

Permalink
Style fixes.
Browse files Browse the repository at this point in the history
whitequark committed Oct 24, 2017
1 parent bbb54fe commit 8ee2f7b
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/socket/udp.rs
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ impl<'a> Resettable for PacketBuffer<'a> {
}

/// An UDP packet ring buffer.
pub type SocketBuffer<'a, 'b : 'a> = RingBuffer<'a, PacketBuffer<'b>>;
pub type SocketBuffer<'a, 'b: 'a> = RingBuffer<'a, PacketBuffer<'b>>;

/// An User Datagram Protocol socket.
///
4 changes: 2 additions & 2 deletions src/storage/ring_buffer.rs
Original file line number Diff line number Diff line change
@@ -594,7 +594,7 @@ mod test {

#[test]
fn test_buffer_get_unallocated() {
let mut ring = RingBuffer::new(vec![b'.'; 12]);;
let mut ring = RingBuffer::new(vec![b'.'; 12]);

assert_eq!(ring.get_unallocated(16, 4), b"");

@@ -643,7 +643,7 @@ mod test {

#[test]
fn test_buffer_get_allocated() {
let mut ring = RingBuffer::new(vec![b'.'; 12]);;
let mut ring = RingBuffer::new(vec![b'.'; 12]);

assert_eq!(ring.get_allocated(16, 4), b"");
assert_eq!(ring.get_allocated(0, 4), b"");

0 comments on commit 8ee2f7b

Please sign in to comment.