Skip to content

Commit 548e34a

Browse files
refactor(env_filter): fix unreachable pub warning
Co-authored-by: WolverinDEV <git@did.science>
1 parent 16bd7d1 commit 548e34a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/env_filter/src

crates/env_filter/src/op.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ impl FilterOp {
2424

2525
#[cfg(not(feature = "regex"))]
2626
impl FilterOp {
27-
pub fn new(spec: &str) -> Result<Self, String> {
27+
pub(crate) fn new(spec: &str) -> Result<Self, String> {
2828
Ok(Self {
2929
inner: spec.to_string(),
3030
})
3131
}
3232

33-
pub fn is_match(&self, s: &str) -> bool {
33+
pub(crate) fn is_match(&self, s: &str) -> bool {
3434
s.contains(&self.inner)
3535
}
3636
}

0 commit comments

Comments
 (0)