Skip to content

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Aug 27, 2025

These impls probably should be here, as these encodings are listed as the default encodings for these types. It's just that nobody uses the NonZero types haha. Also fix the unwrap that will fail for NonZeros.

Found by GPT-5

@Copilot Copilot AI review requested due to automatic review settings August 27, 2025 19:02
@smalis-msft smalis-msft requested a review from a team as a code owner August 27, 2025 19:02
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes oversights in the mesh_protobuf encoding implementation for signed NonZero integer types. The changes ensure proper protobuf encoding support for NonZero types and fix a potential runtime panic when handling default values.

  • Adds missing builtin_field_type implementations for signed NonZero integer types
  • Fixes unwrap() call that could panic when setting default values for NonZero types

@smalis-msft smalis-msft merged commit 9ee5a0b into microsoft:main Aug 28, 2025
29 checks passed
@smalis-msft smalis-msft deleted the mesh-proto-signed-nonzero branch August 28, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants