diff --git a/CHANGELOG.md b/CHANGELOG.md index a0f9d5d..48828df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog -## 0.1.1 - 2017-02-24 +## 0.2.0 - 2018-05-17 +0.2 is here! This release is a breaking change with API refactorings and improvements. + +- Refactored module hierarchy to make more sense and to leave room for more data structures in the future. +- Add new traits for buffers that all buffer types can implement. +- Add new bounded atomic buffer implementation. + +## 0.1.1 - 2018-02-24 - Fixed a critical logic error causing items to not be removable when the buffer length reached exactly the current capacity of the buffer. ## 0.1.0 - 2018-02-24 diff --git a/README.md b/README.md index 1eee7b5..6b96f8d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add this to your Cargo.toml file: ```toml [dependencies] -ringtail = "0.1" +ringtail = "0.2" ``` ## License diff --git a/src/buffers/mod.rs b/src/buffers/mod.rs index f8f07ac..ff8b35b 100644 --- a/src/buffers/mod.rs +++ b/src/buffers/mod.rs @@ -50,5 +50,5 @@ pub trait WritableBuffer: Buffer { /// Copy the given elements and insert them into the back of the buffer. /// /// Returns the number of elements pushed. - fn push(&mut self, src: &[T]) -> usize; + fn push(&mut self, src: &[T]) -> usize where T: Copy; }