Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfran committed Jul 19, 2024
1 parent 5af5657 commit 3718c5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion search/src/engine/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Documents {
let p_len = reader.read_gamma();
let prefix: String = prev.chars().take(p_len as usize).collect();
let path = prefix + &reader.read_str();
prev = path.clone();
prev.clone_from(&path);

let length = reader.read_vbyte();
length_sum += length;
Expand Down
2 changes: 1 addition & 1 deletion search/src/engine/vocabulary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Vocabulary {
let p_len = reader.read_gamma();
let prefix: String = prev.chars().take(p_len as usize).collect();
let s = prefix + &reader.read_str();
prev = s.clone();
prev.clone_from(&s);

index_to_term.push(s.clone());

Expand Down

0 comments on commit 3718c5c

Please sign in to comment.