Skip to content

Commit c5be8e1

Browse files
author
Naveen Aiathurai
committed
chore: formatting issues
1 parent 5bd0908 commit c5be8e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/indexer/segment_writer.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ mod tests {
912912
assert_eq!(positions, &[4]); //< as opposed to 3 if we had a position length of 1.
913913
}
914914

915-
//ISSUE-#2078 - writing and searching shall throw error when the field tokenizer is missing
915+
// ISSUE-#2078 - writing and searching shall throw error when the field tokenizer is missing
916916
#[test]
917917
fn test_show_error_when_tokenizer_not_registered() {
918918
let text_field_indexing = TextFieldIndexing::default()
@@ -940,9 +940,7 @@ mod tests {
940940
let title = schema.get_field("title").unwrap();
941941
let mut document = Document::default();
942942
document.add_text(title, "The Old Man and the Sea");
943-
944943
index_writer.add_document(document).unwrap();
945-
946944
match index_writer.commit() {
947945
Ok(_) => panic!("Commit should have failed"),
948946
Err(e) => assert_eq!(

0 commit comments

Comments
 (0)