Closed Bug 1935122 Opened 9 months ago Closed 9 months ago

Serde v1.0.215 produces warnings in Marionette crate because multiple variants have the same deserialization name

Categories

(Testing :: geckodriver, defect, P3)

defect

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: whimboo, Assigned: jgraham)

References

Details

(Whiteboard: [webdriver:m14][webdriver:external])

Attachments

(1 file)

Serde got upgraded to v1.0.215: https://github.com/serde-rs/serde/releases/tag/v1.0.215

But with the following change it will break the cargo to build geckodriver (see bug 1933492 comment 11):

Produce warning when multiple fields or variants have the same deserialization name

We have to refactor the affected code so that we have only one variant for each deserialization name.

Here the list of warnings that I can see:

warning: unreachable pattern
   --> testing/geckodriver/marionette/src/webdriver.rs:254:22
    |
254 |     #[serde(rename = "WebDriver:FindElement")]
    |                      ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(unreachable_patterns)]` on by default

warning: unreachable pattern
   --> testing/geckodriver/marionette/src/webdriver.rs:260:22
    |
260 |     #[serde(rename = "WebDriver:FindElements")]
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^

warning: unreachable pattern
   --> testing/geckodriver/marionette/src/webdriver.rs:364:22
    |
364 |     #[serde(rename = "WebDriver:TakeScreenshot")]
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unreachable pattern
   --> testing/geckodriver/marionette/src/webdriver.rs:366:22
    |
366 |     #[serde(rename = "WebDriver:TakeScreenshot")]
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
Assignee: nobody → james
Status: NEW → ASSIGNED
Blocks: 1910592
Severity: -- → S3
Priority: -- → P3
Whiteboard: [webdriver:m14][webdriver:external]
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/183b78bba4ee Ensure we have one command variant per marionette command, r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: