Minor lint comments (#1166)

This commit is contained in:
Paul Masurel
2021-10-06 11:27:48 +09:00
committed by GitHub
parent 4d05b26e7a
commit ffe4446d90
2 changed files with 2 additions and 4 deletions

View File

@@ -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<InnerIndexReader>,
watch_handle_opt: Option<WatchHandle>,
_watch_handle_opt: Option<WatchHandle>,
}
impl IndexReader {

View File

@@ -16,7 +16,6 @@ pub struct FragmentCandidate {
score: Score,
start_offset: usize,
stop_offset: usize,
num_chars: usize,
highlighted: Vec<Range<usize>>,
}
@@ -31,7 +30,6 @@ impl FragmentCandidate {
score: 0.0,
start_offset,
stop_offset: start_offset,
num_chars: 0,
highlighted: vec![],
}
}