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

[naga xtask] Minor simplifications. #4883

Closed

Conversation

jimblandy
Copy link
Member

Prefer nested fn functions over closures when possible. Using a fn makes it evident that no values are being captured.

Simplify HLSL loop over entry points.

@ErichDonGubler These are purely style things - if you don't think the new code is more legible, feel free to reject the PR. I just wrote the changes in the process of understanding the code, and figured I might as well see whether anyone else felt similarly.

Checklist

  • Run cargo fmt.
  • Run cargo clippy.
  • Run cargo xtask test to run tests.
  • (not appropriate) Add change to CHANGELOG.md. See simple instructions inside file.

Prefer nested `fn` functions over closures when possible. Using a `fn`
makes it evident that no values are being captured.

Simplify HLSL loop over entry points.
@jimblandy jimblandy requested a review from a team as a code owner December 15, 2023 21:46
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

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

🤷🏻‍♂️👍🏻

@ErichDonGubler ErichDonGubler self-assigned this Dec 15, 2023
@ErichDonGubler ErichDonGubler added the area: infrastructure Testing, building, coordinating issues label Dec 15, 2023
@ErichDonGubler ErichDonGubler enabled auto-merge (squash) December 21, 2023 20:35
@ErichDonGubler
Copy link
Member

Looks like this review only needs another @gfx-rs/naga reviewer, but @teoxoy is out. Any objection to me force-merging, @jimblandy? This is a teeny change, and I expect negligible risk for trunk.

@Wumpf
Copy link
Member

Wumpf commented Apr 14, 2024

bump @teoxoy :)

@teoxoy teoxoy disabled auto-merge April 15, 2024 18:08
@teoxoy
Copy link
Member

teoxoy commented Apr 15, 2024

LGTM but it seems it needs to now be rebased.

@ErichDonGubler
Copy link
Member

This PR has been completely invalidated by #4902.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: infrastructure Testing, building, coordinating issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants