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

Simplify build.rs by using the question mark operator #3495

Merged
merged 1 commit into from Jan 7, 2024

Conversation

samueltardieu
Copy link
Contributor

The question_mark clippy lint currently overlooks some patterns that could be replaced by the question mark operator. This will be fixed shortly by rust-lang/rust-clippy#11994.

@rustbot
Copy link
Collaborator

rustbot commented Dec 22, 2023

r? @JohnTitor

(rustbot has picked a reviewer for you, use r? to override)

@JohnTitor
Copy link
Member

Thanks! But IIRC the question mark operator on Option was stabilized on 1.22 and this would break 0.2's MSRV, I think.

Once I create a new release (it should be the final release from the main branch, I think), I'm going to r+ this.

@bors
Copy link
Contributor

bors commented Dec 30, 2023

☔ The latest upstream changes (presumably #3498) made this pull request unmergeable. Please resolve the merge conflicts.

@JohnTitor
Copy link
Member

It's time to go! @bors r+

@bors
Copy link
Contributor

bors commented Jan 7, 2024

📌 Commit 426ad68 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 7, 2024

⌛ Testing commit 426ad68 with merge 8d27fe7...

@bors
Copy link
Contributor

bors commented Jan 7, 2024

☀️ Test successful - checks-actions, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing 8d27fe7 to main...

@bors bors merged commit 8d27fe7 into rust-lang:main Jan 7, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants