ext/pf2/src/ringbuffer.rs in pf2-0.6.0 vs ext/pf2/src/ringbuffer.rs in pf2-0.7.0

- old
+ new

@@ -15,12 +15,10 @@ impl Ringbuffer { pub fn new(capacity: usize) -> Self { Self { capacity, - buffer: std::iter::repeat_with(|| None) - .take(capacity + 1) - .collect::<Vec<_>>(), + buffer: std::iter::repeat_with(|| None).take(capacity + 1).collect::<Vec<_>>(), read_index: 0, write_index: 0, } }