Skip to content

Commit

Permalink
Fix compilation issues that were introduced via forced submission.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 616179152
  • Loading branch information
lszekeres authored and copybara-github committed Mar 15, 2024
1 parent 3d43bec commit fa76bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion centipede/analyze_corpora.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::vector<CorpusRecord> ReadCorpora(std::string_view binary_name,
LOG(INFO) << "Reading features at: " << features_paths[i];
ReadShard(corpus_paths[i], features_paths[i],
[&corpus](ByteArray input, FeatureVec features) {
corpus.emplace_back(std::move(input), std::move(features));
corpus.push_back({std::move(input), std::move(features)});
});
}
return corpus;
Expand Down
2 changes: 1 addition & 1 deletion centipede/distill_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ std::vector<TestCorpusRecord> ReadFromDistilled(const WorkDir &wd) {

std::vector<TestCorpusRecord> result;
auto shard_reader_callback = [&result](ByteArray input, FeatureVec features) {
result.emplace_back(std::move(input), std::move(features));
result.push_back({std::move(input), std::move(features)});
};
ReadShard(distilled_corpus_path, distilled_features_path,
shard_reader_callback);
Expand Down

0 comments on commit fa76bcb

Please sign in to comment.