From bf2a10ca3b54ac3ed3dcc9c25cb1cf7f07ba8135 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 21 Oct 2021 14:00:45 -0400 Subject: Add explicit '_ lifetimes to generic types --- src/exhaustive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/exhaustive.rs') 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 ExhaustiveSearch { } /// Iterate over the items stored in this index. - pub fn iter(&self) -> Iter { + pub fn iter(&self) -> Iter<'_, T> { self.into_iter() } -- cgit v1.2.3