Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix handling of raw ident fields in derive#841

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sfackler merged 1 commit intomasterfromfix-raw-idents
Nov 23, 2021
Merged

Conversation

sfackler
Copy link
Collaborator

Closes#839

let ident = raw.ident.as_ref().unwrap().clone();
Ok(Field{
name: overrides.name.unwrap_or_else(|| ident.to_string()),
name: overrides.name.unwrap_or_else(||{
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

@dtolnay am I right in thinking that there's nothing that uses IdentFragment to create a string?

Choose a reason for hiding this comment

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

Not that I know of. IdentFragment isn't intended for anything other than using in format_ident.

@sfacklersfackler merged commit385bf35 intomasterNov 23, 2021
@sfacklersfackler deleted the fix-raw-idents branchNovember 23, 2021 23:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@dtolnaydtolnaydtolnay left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

"__r#type" is not a valid identifier

2 participants

@sfackler@dtolnay

[8]ページ先頭

©2009-2025 Movatter.jp