10779481b7
The default implementation of `RingBuffer` was setting a capacity of 0. This was incorrect as it wasn't possible to insert any items. This patch updates it to take a `NonZeroUsize` so that it's impossible to set a negative or zero capacity.
Common types that are used in the different matrix-sdk layers.
NOTE: These are common dependencies for the different matrix-sdk layers, you're probably interested in the main matrix-sdk crate.