diff options
Diffstat (limited to 'src/handlers/ripgrep_json.rs')
-rw-r--r-- | src/handlers/ripgrep_json.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handlers/ripgrep_json.rs b/src/handlers/ripgrep_json.rs index 1a278a14..db3cfe82 100644 --- a/src/handlers/ripgrep_json.rs +++ b/src/handlers/ripgrep_json.rs @@ -22,6 +22,7 @@ pub fn parse_line(line: &str) -> Option<grep::GrepLine> { } } Some(grep::GrepLine { + grep_type: crate::config::GrepType::Ripgrep, line_type: ripgrep_line._type, line_number: ripgrep_line.data.line_number, path: Cow::from(ripgrep_line.data.path.text), @@ -44,6 +45,7 @@ pub fn parse_line(line: &str) -> Option<grep::GrepLine> { // ripgrep --json also emits these metadata lines at // file boundaries. We emit nothing but signal that the // line has been handled. + grep_type: crate::config::GrepType::Ripgrep, line_type: grep::LineType::Ignore, line_number: None, path: "".into(), |