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

Run clippy for wasm, with own clippy.toml config file #1628

Merged
merged 16 commits into from
Mar 21, 2023
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Mar 20, 2023

Closes:

It is way to easy to accidentally use std::time::Instant::now, which will break the web-viewer at runtime. With this PR, we now check that we don't use it, or similarly banned method, when compiling for wasm32.

I ran into a subtle difference between how clippy acted on 1.67.0 and 1.67.1. I've now made sure we always use 1.67.1 both locally and on CI.

Checklist

@emilk emilk force-pushed the emilk/clippy-wasm branch from bccda72 to 6207499 Compare March 20, 2023 20:24
@emilk emilk added the 🧑‍💻 dev experience developer experience (excluding CI) label Mar 20, 2023
@emilk emilk force-pushed the emilk/clippy-wasm branch from 8f1bf57 to 10bfc75 Compare March 20, 2023 21:11
@emilk emilk marked this pull request as ready for review March 20, 2023 21:42
Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would love to get rid of the move inside the script. It seems to work for me, but I might be missing something.

scripts/clippy_wasm.sh Outdated Show resolved Hide resolved
@emilk emilk mentioned this pull request Mar 21, 2023
@emilk emilk merged commit 21e1a8a into main Mar 21, 2023
@emilk emilk deleted the emilk/clippy-wasm branch March 21, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants