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

fix some clippy warnings, use PhantomData for the lifetime marker in Iter and IterMut #29

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

tsemo4917
Copy link
Contributor

@tsemo4917 tsemo4917 commented Sep 19, 2023

fix some clippy warnings

  • 1 redundant clone because Option<&usize> which implements the Copy trait
  • some style issues(GlobalAlloc is unused when "default-features = false")
  • 1 clippy::manual_bits 8 * (size_of::()) -> usize::BITS as usize

feat: use marker for the lifetime marker in Iter and IterMut

@tsemo4917 tsemo4917 changed the title fix some clippy warnings fix some clippy warnings, use marker for the lifetime marker in Iter and IterMut Sep 19, 2023
@tsemo4917 tsemo4917 changed the title fix some clippy warnings, use marker for the lifetime marker in Iter and IterMut fix some clippy warnings, use PhantomData for the lifetime marker in Iter and IterMut Sep 19, 2023
@jiegec jiegec merged commit f225090 into rcore-os:master Sep 19, 2023
2 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