Build failure: redundant imports #1170

Closed
opened 2026-04-06 01:41:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @yonas on 4/6/2024

$ cargo build --features sqlite --release
...
error: the item `jsonwebtoken` is imported redundantly
 --> src/auth.rs:7:20
  |
7 | use jsonwebtoken::{self, errors::ErrorKind, Algorithm, DecodingKey, EncodingKey, Header};
  |                    ^^^^ the item `jsonwebtoken` is already defined by prelude
  |
  = note: `-D unused-imports` implied by `-D unused`
  = help: to override `-D unused` add `#[allow(unused_imports)]`

error: the item `serde_json` is imported redundantly
   --> src/util.rs:561:18
    |
561 | use serde_json::{self, Value};
    |                  ^^^^
    |
   ::: src/main.rs:20:1
    |
20  | extern crate serde_json;
    | ------------------------ the item `serde_json` is already imported here

error: could not compile `vaultwarden` (bin "vaultwarden") due to 2 previous errors
*Originally created by @yonas on 4/6/2024* ``` $ cargo build --features sqlite --release ... error: the item `jsonwebtoken` is imported redundantly --> src/auth.rs:7:20 | 7 | use jsonwebtoken::{self, errors::ErrorKind, Algorithm, DecodingKey, EncodingKey, Header}; | ^^^^ the item `jsonwebtoken` is already defined by prelude | = note: `-D unused-imports` implied by `-D unused` = help: to override `-D unused` add `#[allow(unused_imports)]` error: the item `serde_json` is imported redundantly --> src/util.rs:561:18 | 561 | use serde_json::{self, Value}; | ^^^^ | ::: src/main.rs:20:1 | 20 | extern crate serde_json; | ------------------------ the item `serde_json` is already imported here error: could not compile `vaultwarden` (bin "vaultwarden") due to 2 previous errors ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1170