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

Suppress warnings when cargo test --no-default-features #289

Conversation

giraffate
Copy link
Contributor

Suppress warnings like below:
https://github.com/Keats/jsonwebtoken/actions/runs/3997872968/jobs/6859764490#step:6:11

warning: unused imports: `Header`, `Validation`, `decode`, `encode`
Warning:  --> tests/ecdsa/mod.rs:3:5
  |
3 |     decode, encode, Algorithm, DecodingKey, EncodingKey, Header, Validation,
  |     ^^^^^^  ^^^^^^                                       ^^^^^^  ^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `time::OffsetDateTime`
Warning:  --> tests/ecdsa/mod.rs:6:5
  |
6 | use time::OffsetDateTime;
  |     ^^^^^^^^^^^^^^^^^^^^

@Keats Keats merged commit 4df1e47 into Keats:master Jan 25, 2023
@Keats
Copy link
Owner

Keats commented Jan 25, 2023

Thanks!

@giraffate giraffate deleted the suppress_warnings_when_cargo_test_no-default-features branch January 25, 2023 23:19
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