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

Use Clippy #42

Merged
merged 1 commit into from
Mar 13, 2021
Merged

Use Clippy #42

merged 1 commit into from
Mar 13, 2021

Conversation

Kestrer
Copy link
Contributor

@Kestrer Kestrer commented Mar 13, 2021

Clippy is a useful tool for preventing common mistakes. One mistake it caught in the existing code is that we were comparing *const dyn Fns. This compares the vtable pointer as well as the data pointer, but comparing the vtable pointer is entirely meaningless and could cause bugs, so I changed it to just compare the data pointer.

@lukechu10
Copy link
Member

Looks good!

@lukechu10 lukechu10 merged commit b6ede27 into sycamore-rs:master Mar 13, 2021
@Kestrer Kestrer deleted the clippy branch March 14, 2021 06:09
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