Change summary
crates/language/src/buffer.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Detailed changes
@@ -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()