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

Display FuncRef #56

Closed
wants to merge 1 commit into from
Closed

Conversation

emhane
Copy link
Contributor

@emhane emhane commented Sep 5, 2024

Impl Display for FuncRef

pub struct FuncRef(u32);
entity_impl!(FuncRef);
entity_impl!(FuncRef, "%");
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not entirely sure why FuncRef itself should implement Display, especially because this Display implementation won't emit anything useful.
Would you elaborate on this change a little bit more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair enough! we can always load the whole signature if you prefer, instead of printing e.g. %1 or %22

@emhane emhane closed this Sep 14, 2024
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