NULLx76 / ringbuffer

A fixed-size circular buffer written in Rust.
https://crates.io/crates/ringbuffer
MIT License
95 stars 20 forks source link

make `skip` a provided method of `RingBufferRead` #109

Closed tertsdiepraam closed 1 year ago

tertsdiepraam commented 1 year ago

skip was implemented with a macro that was repeated for all ringbuffers. I've copied the #[inline] attribute, but I don't really know whether #[inline] works on a provided method. I've also removed the .map(drop), because I think it's unnecessary (correct me if I'm wrong).

jdonszelmann commented 1 year ago

won't correct cause you're not wrong