Skip to content

fix unqualified Vec paths in generated code for no_std#71

Merged
fabracht merged 4 commits intomainfrom
fix-unqualified-vec
Jan 17, 2026
Merged

fix unqualified Vec paths in generated code for no_std#71
fabracht merged 4 commits intomainfrom
fix-unqualified-vec

Conversation

@fabracht
Copy link
Copy Markdown
Owner

Summary

  • Use ::bebytes::Vec instead of unqualified Vec in all generated code
  • Fixes 14 locations across lib.rs and structs.rs where Vec::new(), Vec::from(), or return types used unqualified paths
  • Update no_std.rs test to import Vec from bebytes instead of alloc, ensuring future regressions are caught

Test plan

  • cargo test passes
  • cargo test --no-default-features -p bebytes no_std passes
  • cargo clippy clean

@fabracht fabracht merged commit 26523dc into main Jan 17, 2026
2 checks passed
@fabracht fabracht deleted the fix-unqualified-vec branch January 17, 2026 21:52
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.

1 participant