mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-26 18:20:40 -04:00
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.