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

Update to handle all the latest cargo warnings #3720

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

andrewbaptist
Copy link
Contributor

This PR fixes ~100 different clippy lint warnings. Many of these may have been introduced by the clippy 1.64 release.

let stdin = stdin();

for line in stdin.lock().lines() {
for line in stdin().lines() {
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Error here:
use of unstable library feature 'stdin_forwarders'

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 removed this fix - clippy is not 100% happy still, but at least it is much closer to passing now.

Copy link
Member

Choose a reason for hiding this comment

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

Clippy should take the MSRV into account with the suggestions is makes, so I think we're good. We'll start seeing them once we bump the MSRV.

src/uu/factor/src/cli.rs Outdated Show resolved Hide resolved
Copy link
Sponsor Contributor

@sylvestre sylvestre left a comment

Choose a reason for hiding this comment

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

Doesn't build currently

@andrewbaptist andrewbaptist force-pushed the fix_warnings branch 3 times, most recently from c9da98b to 77956b8 Compare July 18, 2022 15:30
@andrewbaptist
Copy link
Contributor Author

This PR should be good to go, the GnuTests failure is actually inaccurate (it is basing the output on PRs, not on main).

Copy link
Sponsor Contributor

@sylvestre sylvestre 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!

@sylvestre sylvestre merged commit e165457 into uutils:main Jul 19, 2022
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.

None yet

3 participants