Skip to content

Commit

Permalink
make new constructorspub(crate)
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Dec 22, 2021
1 parent 029bb5f commit 17b5680
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tracing-subscriber/src/filter/layer_filters/combinator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ where
/// Enabling spans or events if they have both a particular target *and* are
/// above a certain level:
///
/// ```
/// ```ignore
/// use tracing_subscriber::{
/// filter::{filter_fn, LevelFilter, combinator::And},
/// prelude::*,
Expand Down Expand Up @@ -94,7 +94,7 @@ where
/// ```
///
/// [`Filter`]: crate::layer::Filter
pub fn new(a: A, b: B) -> Self {
pub(crate) fn new(a: A, b: B) -> Self {
Self {
a,
b,
Expand Down Expand Up @@ -176,7 +176,7 @@ where
/// Enabling spans and events at the `INFO` level and above, and all spans
/// and events with a particular target:
///
/// ```
/// ```ignore
/// use tracing_subscriber::{
/// filter::{filter_fn, LevelFilter, combinator::Or},
/// prelude::*,
Expand Down Expand Up @@ -215,7 +215,7 @@ where
/// Enabling a higher level for a particular target by using `Or` in
/// conjunction with the [`And`] combinator:
///
/// ```
/// ```ignore
/// use tracing_subscriber::{
/// filter::{filter_fn, LevelFilter, combinator},
/// prelude::*,
Expand All @@ -242,7 +242,7 @@ where
/// ```
///
/// [`Filter`]: crate::layer::Filter
pub fn new(a: A, b: B) -> Self {
pub(crate) fn new(a: A, b: B) -> Self {
Self {
a,
b,
Expand Down Expand Up @@ -330,7 +330,7 @@ where
/// it would disable a span or event, that span or event will be enabled.
///
/// [`Filter`]: crate::layer::Filter
pub fn new(a: A) -> Self {
pub(crate) fn new(a: A) -> Self {
Self { a, _s: PhantomData }
}
}
Expand Down

0 comments on commit 17b5680

Please sign in to comment.