Skip to content

Allow lading_payload::Serialize to be mutable#1352

Merged
blt merged 1 commit intomainfrom
blt/allow_lading_payload_serialize_to_be_mutable
May 12, 2025
Merged

Allow lading_payload::Serialize to be mutable#1352
blt merged 1 commit intomainfrom
blt/allow_lading_payload_serialize_to_be_mutable

Conversation

@blt
Copy link
Copy Markdown
Collaborator

@blt blt commented May 12, 2025

What does this PR do?

This commit allows the Serialize trait defined in lading_payload
to mutate itself. This will improve the ergonimics of writing
a serializer that must have some form of memory, without requiring
other serializers to opt into this behavior.

Curiously, this did turn up two problems with dogstatsd: an aliased
function and a framing bug. Both are now corrected. I'm not sure
why this didn't trigger before.

Motivation

REF SMPTNG-659

This commit allows the Serialize trait defined in lading_payload
to mutate itself. This will improve the ergonimics of writing
a serializer that must have some form of memory, without requiring
other serializers to opt into this behavior.

Curiously, this did turn up two problems with dogstatsd: an aliased
function and a framing bug. Both are now corrected. I'm not sure
why this didn't trigger before.

REF SMPTNG-659

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt added the no-changelog label May 12, 2025 — with Graphite App
@blt blt marked this pull request as ready for review May 12, 2025 22:19
@blt blt requested a review from a team as a code owner May 12, 2025 22:19
@datadog-datadog-prod-us1
Copy link
Copy Markdown

Datadog Summary

✅ Code Quality    ✅ Code Security    ✅ Dependencies


Was this helpful? Give us feedback!

Copy link
Copy Markdown
Collaborator Author

blt commented May 12, 2025

Merge activity

  • May 12, 7:03 PM EDT: @blt merged this pull request with Graphite.

@blt blt deleted the blt/allow_lading_payload_serialize_to_be_mutable branch May 12, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants