Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: add Report::with_labels #47

Merged
merged 1 commit into from Sep 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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