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

Refactor repeated logic into a SystemParam #12

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Refactor repeated logic into a SystemParam #12

merged 1 commit into from
Jan 18, 2024

Conversation

rparrett
Copy link
Owner

@rparrett rparrett commented Jan 18, 2024

I found myself repeating this logic for a third time while fixing #6.

It's unfortunate that this exposes "advanced users" (those who are modifying this crate's code) to scary explicit lifetimes, but I can't think of an alternative that's any prettier, and this makes the rest of the systems easier to follow.

@rparrett rparrett merged commit d446a59 into main Jan 18, 2024
2 checks passed
@rparrett rparrett deleted the system_param branch January 18, 2024 23:01
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.

1 participant