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

Minor manual cleanup #13830

Merged
merged 1 commit into from
Dec 24, 2022
Merged

Minor manual cleanup #13830

merged 1 commit into from
Dec 24, 2022

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Dec 23, 2022

  • use default derive
  • use strip_prefix where possible to avoid dup work

* use default derive
* use `strip_prefix` where possible to avoid dup work
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 23, 2022
@@ -113,11 +113,9 @@ fn unescape(s: &str) -> String {
fn parse_pr_number(s: &str) -> Option<u32> {
const BORS_PREFIX: &str = "Merge #";
const HOMU_PREFIX: &str = "Auto merge of #";
if s.starts_with(BORS_PREFIX) {
let s = &s[BORS_PREFIX.len()..];
if let Some(s) = s.strip_prefix(BORS_PREFIX) {
Copy link
Member

Choose a reason for hiding this comment

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

❤️

@lnicola
Copy link
Member

lnicola commented Dec 24, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Dec 24, 2022

📌 Commit ec55dd1 has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 24, 2022

⌛ Testing commit ec55dd1 with merge 1927c2e...

@bors
Copy link
Contributor

bors commented Dec 24, 2022

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 1927c2e to master...

@bors bors merged commit 1927c2e into rust-lang:master Dec 24, 2022
@nyurik nyurik deleted the lints branch December 24, 2022 19:35
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