Skip to content

Commit

Permalink
add Report::with_labels (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
superhawk610 committed Sep 26, 2022
1 parent efbdf6b commit 21b54f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Expand Up @@ -263,6 +263,12 @@ impl<'a, S: Span> ReportBuilder<'a, S> {
self.add_label(label);
self
}

/// Add multiple labels to the report.
pub fn with_labels<L: IntoIterator<Item = Label<S>>>(mut self, labels: L) -> Self {
self.add_labels(labels);
self
}

/// Use the given [`Config`] to determine diagnostic attributes.
pub fn with_config(mut self, config: Config) -> Self {
Expand Down

0 comments on commit 21b54f4

Please sign in to comment.