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

[single_char_pattern] add strip_prefix and strip_suffix #7156

Merged
merged 2 commits into from
May 3, 2021

Conversation

hellow554
Copy link
Contributor

@hellow554 hellow554 commented May 3, 2021

Title says it all. Adjusted ui tests.

I added the second commit in case you don't like that I moved that table into single_char_pattern.rs directly. I don't see any reason why it shouldn't be in that file. It isn't used anywhere else.

Please write a short comment explaining your change (or "none" for internal only changes)

changelog: add strip_prefix and strip_suffix to single_char_pattern lint

hellow554 added 2 commits May 3, 2021 16:18
this will warn, if a single_char_pattern is used in one of the above
methods
@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 3, 2021
@flip1995
Copy link
Member

flip1995 commented May 3, 2021

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented May 3, 2021

📌 Commit 19e7448 has been approved by flip1995

@bors
Copy link
Contributor

bors commented May 3, 2021

⌛ Testing commit 19e7448 with merge 5e3160c...

@bors
Copy link
Contributor

bors commented May 3, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 5e3160c to master...

@bors bors merged commit 5e3160c into rust-lang:master May 3, 2021
@hellow554 hellow554 deleted the single_char_strip branch May 3, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants