From ffe4446d90ccce4c59bbc7b1ae4ed3955020756e Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Wed, 6 Oct 2021 11:27:48 +0900 Subject: [PATCH] Minor lint comments (#1166) --- src/reader/mod.rs | 4 ++-- src/snippet/mod.rs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/reader/mod.rs b/src/reader/mod.rs index 679abc7c0a..ea68d34430 100644 --- a/src/reader/mod.rs +++ b/src/reader/mod.rs @@ -94,7 +94,7 @@ impl IndexReaderBuilder { } Ok(IndexReader { inner: inner_reader_arc, - watch_handle_opt, + _watch_handle_opt: watch_handle_opt, }) } @@ -167,7 +167,7 @@ impl InnerIndexReader { #[derive(Clone)] pub struct IndexReader { inner: Arc, - watch_handle_opt: Option, + _watch_handle_opt: Option, } impl IndexReader { diff --git a/src/snippet/mod.rs b/src/snippet/mod.rs index b431302784..932fff4674 100644 --- a/src/snippet/mod.rs +++ b/src/snippet/mod.rs @@ -16,7 +16,6 @@ pub struct FragmentCandidate { score: Score, start_offset: usize, stop_offset: usize, - num_chars: usize, highlighted: Vec>, } @@ -31,7 +30,6 @@ impl FragmentCandidate { score: 0.0, start_offset, stop_offset: start_offset, - num_chars: 0, highlighted: vec![], } }