diff --git a/crates/ignore/src/dir.rs b/crates/ignore/src/dir.rs index 51fc813e1..7f8ff103c 100644 --- a/crates/ignore/src/dir.rs +++ b/crates/ignore/src/dir.rs @@ -34,11 +34,13 @@ use crate::{ /// IgnoreMatch represents information about where a match came from when using /// the `Ignore` matcher. #[derive(Clone, Debug)] +#[allow(dead_code)] pub(crate) struct IgnoreMatch<'a>(IgnoreMatchInner<'a>); /// IgnoreMatchInner describes precisely where the match information came from. /// This is private to allow expansion to more matchers in the future. #[derive(Clone, Debug)] +#[allow(dead_code)] enum IgnoreMatchInner<'a> { Override(overrides::Glob<'a>), Gitignore(&'a gitignore::Glob), diff --git a/crates/ignore/src/overrides.rs b/crates/ignore/src/overrides.rs index fd8af95d7..1b02b4d4e 100644 --- a/crates/ignore/src/overrides.rs +++ b/crates/ignore/src/overrides.rs @@ -23,9 +23,11 @@ use crate::{ /// The lifetime `'a` refers to the lifetime of the matcher that produced /// this glob. #[derive(Clone, Debug)] +#[allow(dead_code)] pub struct Glob<'a>(GlobInner<'a>); #[derive(Clone, Debug)] +#[allow(dead_code)] enum GlobInner<'a> { /// No glob matched, but the file path should still be ignored. UnmatchedIgnore,