warnings: remove/tweak some dead code

It looks like the dead code detector got better, so do a little code
cleanup.
This commit is contained in:
Andrew Gallant
2022-03-21 08:31:49 -04:00
parent b6189c659e
commit 5370064f00
5 changed files with 7 additions and 15 deletions

View File

@@ -436,6 +436,7 @@ pub enum SinkContextKind {
/// A type that describes a contextual line reported by a searcher.
#[derive(Clone, Debug)]
pub struct SinkContext<'b> {
#[cfg(test)]
pub(crate) line_term: LineTerminator,
pub(crate) bytes: &'b [u8],
pub(crate) kind: SinkContextKind,