Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hwrdtm committed Jun 3, 2024
1 parent f63c3cc commit e9556ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions opentelemetry-proto/tests/grpc_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ fn build_tonic() {
}

// add custom serializer and deserializer for AnyValue
for path in ["logs.v1.LogRecord.body"] {
builder = builder
.field_attribute(path, "#[cfg_attr(feature =\"with-serde\", serde(serialize_with = \"crate::proto::serializers::serialize_to_value\", deserialize_with = \"crate::proto::serializers::deserialize_from_value\"))]");
}
builder = builder
.field_attribute("logs.v1.LogRecord.body", "#[cfg_attr(feature =\"with-serde\", serde(serialize_with = \"crate::proto::serializers::serialize_to_value\", deserialize_with = \"crate::proto::serializers::deserialize_from_value\"))]");

// flatten
for path in [
Expand Down

0 comments on commit e9556ec

Please sign in to comment.