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

Skip Rust's escaping in the enum_def macro (#793) #794

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RichardWGNR
Copy link

@RichardWGNR RichardWGNR commented Jul 13, 2024

PR Info

  • Dependencies: no
  • Dependents: no

New Features

No

Bug Fixes

Yes. Please see the #793 issue

Breaking Changes

No

Changes

No

RichardWGNR

This comment was marked as duplicate.

Copy link
Author

Choose a reason for hiding this comment

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

I could reduce the number of allocations, but that's not the point here.

Comment on lines 67 to 69
if inner.starts_with("r#") {
inner = (&inner[2..]).to_string();
}
Copy link

Choose a reason for hiding this comment

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

There is a IdentExt::unraw helper which does exactly this

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.

[BUG] Enum_def macro errror
2 participants