diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-10-21 14:00:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-10-21 14:00:45 -0400 |
commit | bf2a10ca3b54ac3ed3dcc9c25cb1cf7f07ba8135 (patch) | |
tree | 632db87bfa81c29575dfdb7834b44c0226a34248 /src/exhaustive.rs | |
parent | 09e55694247f1a9494374e99574cc65bace706e7 (diff) | |
download | acap-bf2a10ca3b54ac3ed3dcc9c25cb1cf7f07ba8135.tar.xz |
Add explicit '_ lifetimes to generic types
Diffstat (limited to 'src/exhaustive.rs')
-rw-r--r-- | src/exhaustive.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exhaustive.rs b/src/exhaustive.rs index 23a490f..3f42876 100644 --- a/src/exhaustive.rs +++ b/src/exhaustive.rs @@ -16,7 +16,7 @@ impl<T> ExhaustiveSearch<T> { } /// Iterate over the items stored in this index. - pub fn iter(&self) -> Iter<T> { + pub fn iter(&self) -> Iter<'_, T> { self.into_iter() } |