diff options
author | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-05-18 18:28:13 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-05-18 18:28:13 +0300 |
commit | dd4f42323b77b7ad5e1c8ad4d27a09b21a2cf2b3 (patch) | |
tree | f8ca86b3448b04f3be9b048e59df5ed3ff706372 | |
parent | 741ab78ea5e9572614a6dbe4984616bd3451ae74 (diff) | |
download | iter-dd4f42323b77b7ad5e1c8ad4d27a09b21a2cf2b3.tar.gz |
drop unnecessary lifetimes
Sponsored-by: author
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 6f9a675..170dad0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ impl<T> Container<T> { self.items.push(item); } - fn iter<'a>(&'a self) -> ContainerItems<'a, T> { + fn iter(&self) -> ContainerItems<T> { ContainerItems::new(self) } } |