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

feat: mark builders as must_use #2239

Merged
merged 2 commits into from Jul 21, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions tracing-subscriber/src/filter/env/builder.rs
Expand Up @@ -11,6 +11,7 @@ use tracing::level_filters::STATIC_MAX_LEVEL;
///
/// [builder]: https://rust-unofficial.github.io/patterns/patterns/creational/builder.html
#[derive(Debug, Clone)]
#[must_use]
pub struct Builder {
regex: bool,
env: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions tracing-subscriber/src/fmt/mod.rs
Expand Up @@ -240,6 +240,7 @@ pub type Formatter<N = format::DefaultFields, E = format::Format, W = fn() -> io
/// Configures and constructs `Collector`s.
#[derive(Debug)]
#[cfg_attr(docsrs, doc(cfg(all(feature = "fmt", feature = "std"))))]
#[must_use]
pub struct CollectorBuilder<
N = format::DefaultFields,
E = format::Format,
Expand Down