Skip to content

Commit 67dd809

Browse files
committed
ignore: add some 'allow(dead_code)' annotations
I don't usually like doing this and would prefer to just delete unused code, but I don't have the context required to understand why this code is unused. A refresh of this crate is on the (distant) horizon, so I'll just leave these here for now to squash the warnings.
1 parent e0a8567 commit 67dd809

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/ignore/src/dir.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ use crate::{
3434
/// IgnoreMatch represents information about where a match came from when using
3535
/// the `Ignore` matcher.
3636
#[derive(Clone, Debug)]
37+
#[allow(dead_code)]
3738
pub(crate) struct IgnoreMatch<'a>(IgnoreMatchInner<'a>);
3839

3940
/// IgnoreMatchInner describes precisely where the match information came from.
4041
/// This is private to allow expansion to more matchers in the future.
4142
#[derive(Clone, Debug)]
43+
#[allow(dead_code)]
4244
enum IgnoreMatchInner<'a> {
4345
Override(overrides::Glob<'a>),
4446
Gitignore(&'a gitignore::Glob),

crates/ignore/src/overrides.rs

+2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ use crate::{
2323
/// The lifetime `'a` refers to the lifetime of the matcher that produced
2424
/// this glob.
2525
#[derive(Clone, Debug)]
26+
#[allow(dead_code)]
2627
pub struct Glob<'a>(GlobInner<'a>);
2728

2829
#[derive(Clone, Debug)]
30+
#[allow(dead_code)]
2931
enum GlobInner<'a> {
3032
/// No glob matched, but the file path should still be ignored.
3133
UnmatchedIgnore,

0 commit comments

Comments
 (0)