Skip to content

Commit e6dde95

Browse files
authored
Merge pull request #24 from woshilapin/push-llxporzwzmzq
style: remove useless lifetimes
2 parents ba0a6b4 + 719b400 commit e6dde95

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "typed_index_collection"
33
description = "Manage collection of objects"
4-
version = "2.3.0"
4+
version = "2.3.1"
55
authors = ["Hove <core@hove.com>"]
66
edition = "2018"
77
license = "MIT"

src/collection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,18 +1071,18 @@ pub struct RefMut<'a, T: Id<T>> {
10711071
collection: &'a mut CollectionWithId<T>,
10721072
old_id: String,
10731073
}
1074-
impl<'a, T: Id<T>> ops::DerefMut for RefMut<'a, T> {
1074+
impl<T: Id<T>> ops::DerefMut for RefMut<'_, T> {
10751075
fn deref_mut(&mut self) -> &mut T {
10761076
&mut self.collection.collection.objects[self.idx.get()]
10771077
}
10781078
}
1079-
impl<'a, T: Id<T>> ops::Deref for RefMut<'a, T> {
1079+
impl<T: Id<T>> ops::Deref for RefMut<'_, T> {
10801080
type Target = T;
10811081
fn deref(&self) -> &T {
10821082
&self.collection.objects[self.idx.get()]
10831083
}
10841084
}
1085-
impl<'a, T: Id<T>> Drop for RefMut<'a, T> {
1085+
impl<T: Id<T>> Drop for RefMut<'_, T> {
10861086
fn drop(&mut self) {
10871087
if self.id() != self.old_id {
10881088
self.collection.id_to_idx.remove(&self.old_id);

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
#![deny(missing_docs)]
44
// `derivative` does not implement `Clone` the correct way if it also implements `Copy`
5-
#![allow(clippy::incorrect_clone_impl_on_copy_type)]
5+
#![allow(clippy::non_canonical_clone_impl)]
66

77
mod collection;
88
mod error;

0 commit comments

Comments
 (0)