Keats / jsonwebtoken

JWT lib in rust
MIT License
1.64k stars 260 forks source link

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

Closed giraffate closed 1 year ago

giraffate commented 1 year ago

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 commented 1 year ago

Thanks!