Remove unnecessary lifetimes on Buffer::diagnostic_group
(#22698)
Release Notes: - N/A
This commit is contained in:
parent
fcb03989d2
commit
1ef638d802
1 changed files with 4 additions and 4 deletions
|
@ -4019,12 +4019,12 @@ impl BufferSnapshot {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns an iterator over the diagnostics for the given group.
|
/// Returns an iterator over the diagnostics for the given group.
|
||||||
pub fn diagnostic_group<'a, O>(
|
pub fn diagnostic_group<O>(
|
||||||
&'a self,
|
&self,
|
||||||
group_id: usize,
|
group_id: usize,
|
||||||
) -> impl 'a + Iterator<Item = DiagnosticEntry<O>>
|
) -> impl Iterator<Item = DiagnosticEntry<O>> + '_
|
||||||
where
|
where
|
||||||
O: 'a + FromAnchor,
|
O: FromAnchor + 'static,
|
||||||
{
|
{
|
||||||
self.diagnostics
|
self.diagnostics
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue