Skip to content

bin/server: Simplify assignments via match #4165

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 2 commits into from
Nov 15, 2021
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 11, 2021

This PR replaces two conditional assignments with match assignments to make the code a little less verbose. Semantically these instructions should be identical.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 11, 2021
@Turbo87 Turbo87 requested review from locks and JohnTitor November 11, 2021 23:20
@locks
Copy link
Contributor

locks commented Nov 15, 2021

Nice changes 👍
@bors r+

@bors
Copy link
Contributor

bors commented Nov 15, 2021

📌 Commit 2e96571 has been approved by locks

@bors
Copy link
Contributor

bors commented Nov 15, 2021

⌛ Testing commit 2e96571 with merge 435ccbe...

@bors
Copy link
Contributor

bors commented Nov 15, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing 435ccbe to master...

@bors bors merged commit 435ccbe into rust-lang:master Nov 15, 2021
@Turbo87 Turbo87 deleted the match-match branch November 15, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants