Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Oct 5, 2023

Problem

There's an unnecessary borrow that next-nightly clippy complains about. It needs to be resolved to upgrade the nightly Rust version.

Summary of Changes

Remove the unnecessary borrow.

@brooksprumo brooksprumo self-assigned this Oct 5, 2023
@brooksprumo brooksprumo added the v1.17 PRs that should be backported to v1.17 label Oct 5, 2023
@brooksprumo brooksprumo marked this pull request as ready for review October 5, 2023 15:45
Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

Unlike std::fs:read_dir, fs_err::read_dir takes an Into<PathBuf>.
So by referencing here, we were cloning our PathBuf; removing the reference gets rid of that cloning.

@brooksprumo brooksprumo added the automerge Merge this Pull Request automatically once CI passes label Oct 5, 2023
@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Oct 5, 2023
@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2023

automerge label removed due to a CI failure

@brooksprumo brooksprumo merged commit e0091d6 into solana-labs:master Oct 5, 2023
@brooksprumo brooksprumo deleted the rust/1.73.0/clippy branch October 5, 2023 16:41
mergify bot pushed a commit that referenced this pull request Oct 5, 2023
(cherry picked from commit e0091d6)
brooksprumo added a commit that referenced this pull request Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

v1.17 PRs that should be backported to v1.17

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants