Skip to content

pinocchio/interface: Add sealed trait to Transmute#143

Open
febo wants to merge 1 commit intomainfrom
febo/sealed-transmute
Open

pinocchio/interface: Add sealed trait to Transmute#143
febo wants to merge 1 commit intomainfrom
febo/sealed-transmute

Conversation

@febo
Copy link
Contributor

@febo febo commented Mar 26, 2026

Problem

Currently, pinocchio interface uses a Transmute trait to specify the logic for loading account types. This is an unsafe and internal-only trait, but at the same time, it needs to be public.

Solution

Add a sealed trait to prevent external implementations of the Transmute trait. This does not add any runtime overhead.

cc: @d0nutptr

@febo febo requested a review from joncinque March 26, 2026 11:03
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

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