Skip to content

clippy: fix struct_field_names lint#10902

Open
xtqqczze wants to merge 1 commit intouutils:mainfrom
xtqqczze:clippy/struct_field_names
Open

clippy: fix struct_field_names lint#10902
xtqqczze wants to merge 1 commit intouutils:mainfrom
xtqqczze:clippy/struct_field_names

Conversation

@xtqqczze
Copy link
Contributor

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/pr/bounded-memory. tests/pr/bounded-memory is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail/truncate. tests/tail/truncate is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tail/follow-name (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/factor/t34 is no longer failing!
Congrats! The gnu test tests/printf/printf-surprise is now passing!

/// AKA passwd.pw_dir
pub user_dir: Option<String>,
/// AKA passwd.pw_passwd
#[expect(clippy::struct_field_names)]
Copy link
Contributor

Choose a reason for hiding this comment

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

why not renaming this one too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see an obvious fix without refactoring the whole structure.

cc: @nyurik

Copy link
Contributor

Choose a reason for hiding this comment

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

i was thinking about this one - I suspect that maybe the whole struct name should be changed to something more descriptive like UserAccount ? I don't know enough context for this so left it as an exception.

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.

3 participants