mirror of https://github.com/zkat/miette.git
clippy: Remove unnecessary call to `into_iter`.
The parameter takes `IntoIterator`, so we don't have to call `into_iter` at the call site.
This commit is contained in:
parent
884685b574
commit
b423dc3cd2
|
|
@ -252,7 +252,7 @@ impl MietteDiagnostic {
|
|||
/// ```
|
||||
pub fn and_labels(mut self, labels: impl IntoIterator<Item = LabeledSpan>) -> Self {
|
||||
let mut all_labels = self.labels.unwrap_or_default();
|
||||
all_labels.extend(labels.into_iter());
|
||||
all_labels.extend(labels);
|
||||
self.labels = Some(all_labels);
|
||||
self
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue