Add boxed token filter to ease the building of TextAnalyzer with... #3023
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
1 error and 2 warnings
coverage
Process completed with exit code 1.
|
using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`:
src/indexer/segment_writer.rs#L101
warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
--> src/indexer/segment_writer.rs:101:38
|
101 | let tokenizer_name = text_options
| ______________________________________^
102 | | .and_then(|text_index_option| Some(text_index_option.tokenizer()))
| |______________________________________________________________________________________^ help: try this: `text_options.map(|text_index_option| text_index_option.tokenizer())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
= note: `#[warn(clippy::bind_instead_of_map)]` on by default
|
using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`:
src/indexer/segment_writer.rs#L101
warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`
--> src/indexer/segment_writer.rs:101:38
|
101 | let tokenizer_name = text_options
| ______________________________________^
102 | | .and_then(|text_index_option| Some(text_index_option.tokenizer()))
| |______________________________________________________________________________________^ help: try this: `text_options.map(|text_index_option| text_index_option.tokenizer())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map
= note: `#[warn(clippy::bind_instead_of_map)]` on by default
|