codama-idl / codama

Generate clients, CLIs, documentation and more from your Solana programs
MIT License
73 stars 16 forks source link

Fix missing semicolon in generated Rust code #238

Closed lorisleiva closed 3 days ago

lorisleiva commented 3 days ago

Currently, when generating Rust types that are not enums or structs, the semicolon at the end of the statement is missing. This PR fixes this.

// Before.
pub type MyShortVec = ShortVec<Pubkey>

// After.
pub type MyShortVec = ShortVec<Pubkey>;
changeset-bot[bot] commented 3 days ago

🦋 Changeset detected

Latest commit: bf3ec7f8d9e810d080b550123466c6d9f07cea53

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ---------------------- | ----- | | @codama/renderers-rust | Patch | | @codama/renderers | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR