Skip to content

Commit 6295494

Browse files
Valmir PrettoYaLTeR
Valmir Pretto
authored andcommitted
Add missing #[inline] annotation
Add missing #[inline] annotation
1 parent fc6e102 commit 6295494

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ impl<T> CircularQueue<T> {
191191
/// assert_eq!(iter.next(), Some(&3));
192192
/// assert_eq!(iter.next(), Some(&2));
193193
/// ```
194+
#[inline]
194195
pub fn push(&mut self, x: T) {
195196
if self.data.len() < self.capacity() {
196197
self.data.push(x);
@@ -303,6 +304,7 @@ impl<T> CircularQueue<T> {
303304
/// assert_eq!(iter.next(), Some(&mut 3));
304305
/// assert_eq!(iter.next(), Some(&mut 4));
305306
/// ```
307+
#[inline]
306308
pub fn asc_iter_mut(&mut self) -> AscIterMut<T> {
307309
let (a, b) = self.data.split_at_mut(self.insertion_index);
308310
b.iter_mut().chain(a.iter_mut())

0 commit comments

Comments
 (0)