Skip to content

refactored compiletest following clippy's suggestions #28152

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

Merged
merged 1 commit into from
Sep 1, 2015
Merged

refactored compiletest following clippy's suggestions #28152

merged 1 commit into from
Sep 1, 2015

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Sep 1, 2015

This changes a lot of .to_string() to .to_owned(), removes a few redundant closures, and changes some matches to if lets.

I'm currently in the process of trying out clippy and acting on its suggestions. I started with compiletest, because we use it to test clippy, too. If this finds positive reception, I may continue refactoring other parts of the rust codebase.

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@llogiq
Copy link
Contributor Author

llogiq commented Sep 1, 2015

r? @Manishearth

@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 1, 2015

📌 Commit 99383f8 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Sep 1, 2015

⌛ Testing commit 99383f8 with merge 7e3eabc...

bors added a commit that referenced this pull request Sep 1, 2015
This changes a lot of `.to_string()` to `.to_owned()`, removes a few redundant closures, and changes some `match`es to `if let`s.

I'm currently in the process of trying out clippy and acting on its suggestions. I started with compiletest, because we use it to test clippy, too. If this finds positive reception, I may continue refactoring other parts of the rust codebase.
@bors bors merged commit 99383f8 into rust-lang:master Sep 1, 2015
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.

6 participants