Remove unnecessary lifetimes on Buffer::diagnostic_group (#22698)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-01-05 23:12:35 -07:00 committed by GitHub
parent fcb03989d2
commit 1ef638d802
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4019,12 +4019,12 @@ impl BufferSnapshot {
}
/// Returns an iterator over the diagnostics for the given group.
pub fn diagnostic_group<'a, O>(
&'a self,
pub fn diagnostic_group<O>(
&self,
group_id: usize,
) -> impl 'a + Iterator<Item = DiagnosticEntry<O>>
) -> impl Iterator<Item = DiagnosticEntry<O>> + '_
where
O: 'a + FromAnchor,
O: FromAnchor + 'static,
{
self.diagnostics
.iter()