Does not compile with rust 1.79 #1938

Closed
opened 2026-02-05 02:17:06 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @darix on GitHub (Jun 18, 2024).

error: field `host` is never read
   --> src/auth.rs:386:9
    |
385 | pub struct ClientHeaders {
    |            ------------- field in this struct
386 |     pub host: String,
    |         ^^^^
    |
    = note: `-D dead-code` implied by `-D unused`
    = help: to override `-D unused` add `#[allow(dead_code)]`

error: field `org_id` is never read
   --> src/auth.rs:512:9
    |
506 | pub struct OrgHeaders {
    |            ---------- field in this struct
...
512 |     pub org_id: String,
    |         ^^^^^^

error: field `org_user_type` is never read
   --> src/auth.rs:652:9
    |
648 | pub struct ManagerHeaders {
    |            -------------- field in this struct
...
652 |     pub org_user_type: UserOrgType,
    |         ^^^^^^^^^^^^^

error: field `host` is never read
   --> src/auth.rs:774:9
    |
773 | pub struct OwnerHeaders {
    |            ------------ field in this struct
774 |     pub host: String,
    |         ^^^^

error: could not compile `vaultwarden` (bin "vaultwarden") due to 4 previous errors
Originally created by @darix on GitHub (Jun 18, 2024). ``` error: field `host` is never read --> src/auth.rs:386:9 | 385 | pub struct ClientHeaders { | ------------- field in this struct 386 | pub host: String, | ^^^^ | = note: `-D dead-code` implied by `-D unused` = help: to override `-D unused` add `#[allow(dead_code)]` error: field `org_id` is never read --> src/auth.rs:512:9 | 506 | pub struct OrgHeaders { | ---------- field in this struct ... 512 | pub org_id: String, | ^^^^^^ error: field `org_user_type` is never read --> src/auth.rs:652:9 | 648 | pub struct ManagerHeaders { | -------------- field in this struct ... 652 | pub org_user_type: UserOrgType, | ^^^^^^^^^^^^^ error: field `host` is never read --> src/auth.rs:774:9 | 773 | pub struct OwnerHeaders { | ------------ field in this struct 774 | pub host: String, | ^^^^ error: could not compile `vaultwarden` (bin "vaultwarden") due to 4 previous errors ```
Author
Owner

@dfunkt commented on GitHub (Jun 18, 2024):

Already fixed in 377969ea67

@dfunkt commented on GitHub (Jun 18, 2024): Already fixed in 377969ea6769bccd008203c5464eb361f685b787
Author
Owner

@darix commented on GitHub (Jun 18, 2024):

just noticed.

@darix commented on GitHub (Jun 18, 2024): just noticed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1938