Skip to content

Commit

Permalink
Fixed clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibabushkin committed Jul 31, 2019
1 parent ce565ae commit f931efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ impl<T, H> Drop for Slice<T, H> {

impl<T, H> SliceVec<T, H> {
/// Create an immutable iterator over the elements of the vector.
pub fn iter<'a>(&'a self) -> slice::Iter<'a, T> {
pub fn iter(&self) -> slice::Iter<'_, T> {
self.slice.iter()
}

/// Create an mutable iterator over the elements of the vector.
pub fn iter_mut<'a>(&'a mut self) -> slice::IterMut<'a, T> {
pub fn iter_mut(&mut self) -> slice::IterMut<'_, T> {
self.slice.iter_mut()
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Arena {
/// Return a fresh generation token for the arena.
///
/// If a generation of objects is currently live, an error is returned instead.
pub fn generation_token<'a>(&'a self) -> Result<ArenaToken<'a>, ArenaError> {
pub fn generation_token(&self) -> Result<ArenaToken<'_>, ArenaError> {
if self.locked.get() {
Err(ArenaError::AlreadyLocked)
} else {
Expand Down

0 comments on commit f931efb

Please sign in to comment.