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

workaround: temporarily allow unused_imports warnings with tests #11

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

fursich
Copy link
Collaborator

@fursich fursich commented Apr 11, 2024

PR #10 failed because of lint errors that recently appeared. (thank you @mtshr for pointing this out!)

From what I understand it is false positive detection (possibly related to rust-lang/rust#121708 ??) with latest rustc, but I might be missing something.

@kenkoooo san, please let me know if you have any insights on this 🙏


// FIXME: workaround for false positive detection of unused_imports, which might be related to:
// https://github.com/rust-lang/rust/issues/121708
#[allow(unused_imports)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ended up add this tentative workaround as the warning keeps coming up even after I specified all the import targets. (it disappears only if I remove struct_loader.ts file completely)

@fursich fursich merged commit 615c317 into main Apr 11, 2024
6 checks passed
@fursich fursich deleted the chore/unused-imports-with-tests branch April 11, 2024 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