diff --git a/components/timezone/src/ids.rs b/components/timezone/src/ids.rs index 04afacca036..31357d5d3f9 100644 --- a/components/timezone/src/ids.rs +++ b/components/timezone/src/ids.rs @@ -838,7 +838,7 @@ impl<'a> Iterator for TimeZoneCanonicalIanaIter<'a> { type Item = TimeZoneIanaIdBorrowed<'a>; fn next(&mut self) -> Option { - self.inner.next().map(|s| TimeZoneIanaIdBorrowed(s)) + self.inner.next().map(TimeZoneIanaIdBorrowed) } }