summaryrefslogtreecommitdiffstats
path: root/crates/searcher/src/searcher/core.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2022-03-21 08:31:49 -0400
committerAndrew Gallant <jamslam@gmail.com>2022-03-21 08:59:05 -0400
commit5370064f00856b781c468aabfeaa875408171e03 (patch)
treefa18e29eab3bc0ca7754c246c625148d91729eef /crates/searcher/src/searcher/core.rs
parentb6189c659e2cf6ff70c5fd7bbc31a9a8fdb44d94 (diff)
warnings: remove/tweak some dead code
It looks like the dead code detector got better, so do a little code cleanup.
Diffstat (limited to 'crates/searcher/src/searcher/core.rs')
-rw-r--r--crates/searcher/src/searcher/core.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/searcher/src/searcher/core.rs b/crates/searcher/src/searcher/core.rs
index b6deda01..7d6ccd66 100644
--- a/crates/searcher/src/searcher/core.rs
+++ b/crates/searcher/src/searcher/core.rs
@@ -467,6 +467,7 @@ impl<'s, M: Matcher, S: Sink> Core<'s, M, S> {
let keepgoing = self.sink.context(
&self.searcher,
&SinkContext {
+ #[cfg(test)]
line_term: self.config.line_term,
bytes: &buf[*range],
kind: SinkContextKind::Before,
@@ -497,6 +498,7 @@ impl<'s, M: Matcher, S: Sink> Core<'s, M, S> {
let keepgoing = self.sink.context(
&self.searcher,
&SinkContext {
+ #[cfg(test)]
line_term: self.config.line_term,
bytes: &buf[*range],
kind: SinkContextKind::After,
@@ -526,6 +528,7 @@ impl<'s, M: Matcher, S: Sink> Core<'s, M, S> {
let keepgoing = self.sink.context(
&self.searcher,
&SinkContext {
+ #[cfg(test)]
line_term: self.config.line_term,
bytes: &buf[*range],
kind: SinkContextKind::Other,