Skip to content

Commit

Permalink
chore(compiler): make clippy happy
Browse files Browse the repository at this point in the history
addresses a new lint from Rust 1.76
  • Loading branch information
goto-bus-stop committed Feb 9, 2024
1 parent c56b068 commit 6c9adc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/apollo-compiler/src/validation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ impl DiagnosticList {

pub fn iter(
&self,
) -> impl Iterator<Item = Diagnostic<'_, DiagnosticData>> + DoubleEndedIterator + ExactSizeIterator
{
) -> impl DoubleEndedIterator<Item = Diagnostic<'_, DiagnosticData>> + ExactSizeIterator {
self.diagnostics_data
.iter()
.map(|data| data.to_diagnostic(&self.sources))
Expand Down

0 comments on commit 6c9adc4

Please sign in to comment.