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

refac(D1): move spin delay from ccu to clint #305

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Jan 21, 2024

This branch addresses a minor TODO in the ccu module, by moving the spin delay function from the ccu module into a function on the Clint type. Additionally, I've removed the &self receiver from Clint::get_mtime, since we don't actually use the &self. This lets us change get_mtime to a free function, and therefore remove the unsafe calls to Clint::summon() in a few places, so we can get rid of a few unneeded unsafe blocks.

This branch addresses a minor TODO in the `ccu` module, by moving the
spin delay function from the `ccu` module into a function on the `Clint`
type. Additionally, I've removed the `&self` receiver from
`Clint::get_mtime`, since we don't actually use the `&self`. This lets
us change `get_mtime` to a free function, and therefore remove the
`unsafe` calls to `Clint::summon()` in a few places, so we can get rid
of a few unneeded `unsafe` blocks.
@hawkw hawkw requested a review from jspngh January 21, 2024 00:22
@hawkw hawkw merged commit beb463f into main Jan 21, 2024
10 checks passed
@hawkw hawkw deleted the eliza/clint-delay branch January 21, 2024 01:02
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.

None yet

1 participant