Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeated float causes compliation error on generated code #265

Open
wangjia184 opened this issue Oct 26, 2024 · 0 comments
Open

repeated float causes compliation error on generated code #265

wangjia184 opened this issue Oct 26, 2024 · 0 comments

Comments

@wangjia184
Copy link

wangjia184 commented Oct 26, 2024

message XXXXXXXXXXXX {
    int32 status = 1;      
    repeated string blend_shape_names = 2; 
    repeated float blend_shape_weights = 3;  // <--- 
    repeated int32 audio_samples = 4; 
    double timestamp = 5;
}

As long as the repeated float field is added, the generated code cannot be complied because the XXXXXXXXXXXX class is marked with an unnessecary lifetime annotation.

pb-rs version 0.10.0

pb-rs --dont_use_cow --single-mod contract.proto
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

No branches or pull requests

1 participant