Skip to content

Commit

Permalink
Fix ParseFromString() compilation issue in OSS
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 689892908
  • Loading branch information
schmidt-sebastian authored and copybara-github committed Oct 25, 2024
1 parent 214f441 commit 7a05846
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ class GeometryPipelineCalculator : public CalculatorBase {
_ << "Failed to read a metadata blob from file!");

face_geometry::GeometryPipelineMetadata metadata;
RET_CHECK(metadata.ParseFromString(metadata_blob->ToStringView()))
absl::string_view metadata_str = metadata_blob->ToStringView();
RET_CHECK(metadata.ParseFromArray(metadata_str.data(), metadata_str.size()))
<< "Failed to parse a metadata proto from a binary blob!";

return metadata;
Expand Down

0 comments on commit 7a05846

Please sign in to comment.