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

✂️ metal: Qualified use cleanup #250

Merged
merged 1 commit into from
Oct 3, 2024
Merged

✂️ metal: Qualified use cleanup #250

merged 1 commit into from
Oct 3, 2024

Conversation

MarijnS95
Copy link
Member

Some items are imported in scope with as _ and then again referenced using fully-qualified syntax. Clean that up, and drop the use objc2_metal as metal rename while at it.

Turns out Mac's aren't good at pushing code after all because this was scheduled to be part of the previous PR, but somehow missed out.

@MarijnS95
Copy link
Member Author

and drop the use objc2_metal as metal rename while at it.

Could do the same in the example and docs probably?

@Jasper-Bekkers
Copy link
Member

and drop the use objc2_metal as metal rename while at it.

Could do the same in the example and docs probably?

Would be nice, all of the structs in objc2_metal start with MTL anyway to disambiguate them.

@MarijnS95
Copy link
Member Author

start with MTL anyway to disambiguate them.

I was thinking of that more as a reason for importing them in scope rather than renaming the (optional) qualification. The as metal rename would make it easier to convert away from the metal-rs crate, but there are so many renames that it's not very helpful anyway :)

@MarijnS95 MarijnS95 changed the title metal: Qualified use cleanup ✂️ metal: Qualified use cleanup Oct 3, 2024
@MarijnS95 MarijnS95 enabled auto-merge (squash) October 3, 2024 10:04
Some items are imported in scope with `as _` and then again referenced
using fully-qualified syntax.  Clean that up, and drop the `use
objc2_metal as metal` rename while at it.
@MarijnS95 MarijnS95 merged commit 222b3d8 into main Oct 3, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants