Closed Bug 1889228 Opened 1 year ago Closed 1 year ago

[rustc 1.78] error: the item `serde_cbor` is imported redundantly

Categories

(Core :: DOM: Web Authentication, defect)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

When building with rustc 1.78 beta 4, the following errors are shown:

[task 2024-04-02T03:52:37.731Z] 03:52:37    ERROR -  error: the item `serde_cbor` is imported redundantly
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -    --> dom/webauthn/authrs_bridge/src/lib.rs:36:5
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -     |
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -  36 | use serde_cbor;
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -     |     ^^^^^^^^^^ the item `serde_cbor` is already defined by prelude
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -     |
[task 2024-04-02T03:52:37.731Z] 03:52:37     INFO -     = note: `-D unused-imports` implied by `-D warnings`
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -     = help: to override `-D warnings` add `#[allow(unused_imports)]`
[task 2024-04-02T03:52:37.732Z] 03:52:37    ERROR -  error: the item `PinUvAuthResult` is imported redundantly
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -   --> dom/webauthn/authrs_bridge/src/about_webauthn_controller.rs:7:23
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -    |
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -  5 | use super::*;
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -    |     -------- the item `PinUvAuthResult` is already imported here
[task 2024-04-02T03:52:37.732Z] 03:52:37     INFO -  6 | use authenticator::{
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -  7 |     ctap2::commands::{PinUvAuthResult, StatusCode},
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -    |                       ^^^^^^^^^^^^^^^
[task 2024-04-02T03:52:37.733Z] 03:52:37    ERROR -  error: the item `InteractiveRequest` is imported redundantly
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -   --> dom/webauthn/authrs_bridge/src/about_webauthn_controller.rs:9:42
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -    |
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -  5 | use super::*;
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -    |     -------- the item `InteractiveRequest` is already imported here
[task 2024-04-02T03:52:37.733Z] 03:52:37     INFO -  ...
[task 2024-04-02T03:52:37.734Z] 03:52:37     INFO -  9 |     BioEnrollmentCmd, CredManagementCmd, InteractiveRequest, InteractiveUpdate, PinError,
[task 2024-04-02T03:52:37.734Z] 03:52:37     INFO -    |                                          ^^^^^^^^^^^^^^^^^^
[task 2024-04-02T03:52:37.734Z] 03:52:37    ERROR -  error: could not compile `authrs_bridge` (lib) due to 3 previous errors
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/fa3689b9102e Remove redundant imports from authrs_bridge. r=jschanck
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: