gitignore: derive Debug on structs

This commit is contained in:
Martin von Zweigbergk 2022-01-12 09:24:33 -08:00
parent c47bb9373c
commit 1e07b95e7b

View file

@ -19,6 +19,7 @@ use regex::{escape as regex_escape, Regex};
pub enum GitIgnoreParseError {} pub enum GitIgnoreParseError {}
#[derive(Debug)]
struct GitIgnoreLine { struct GitIgnoreLine {
is_negative: bool, is_negative: bool,
regex: Regex, regex: Regex,
@ -153,6 +154,7 @@ impl GitIgnoreLine {
} }
} }
#[derive(Debug)]
pub struct GitIgnoreFile { pub struct GitIgnoreFile {
parent: Option<Arc<GitIgnoreFile>>, parent: Option<Arc<GitIgnoreFile>>,
lines: Vec<GitIgnoreLine>, lines: Vec<GitIgnoreLine>,