Closed
Bug 1396820
Opened 7 years ago
Closed 6 years ago
warning: variant is never used: `Quit`
Categories
(Testing :: geckodriver, enhancement, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ato, Assigned: automatedtester)
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Details |
whimboo writes in https://github.com/mozilla/webdriver-rust/issues/112: > This seems to have been introduced lately and which is causing a compiler > warning: > > warning: variant is never used: Quit > --> src/server.rs:23:5 > | > 23 | Quit > | ^^^^ > | > = note: #[warn(dead_code)] on by default > > The Ok case is already handled in line 63, so we never reach line 88: > https://github.com/mozilla/webdriver-rust/blob/master/src/server.rs#L63-L88
Reporter | ||
Comment 1•7 years ago
|
||
jgraham:
> This is a longstanding warning. It will probably go away if we
> implement signal handling using the chan-signal crate.
Reporter | ||
Comment 2•7 years ago
|
||
whimboo:
> Interesting because AFAIR I haven't seen it when compiling
> geckodriver lately with webdriver-rust 0.27. Maybe I don't
> remember correctly.
Reporter | ||
Comment 3•7 years ago
|
||
whimboo:
> Ok, so this indeed goes back way longer. Thanks for mentioning
> this James.
Assignee | ||
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → ato
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•7 years ago
|
||
Oops, I didn’t mean to assign myself to this.
Assignee: ato → nobody
Status: ASSIGNED → NEW
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → dburns
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8985077 -
Flags: review?(james)
Comment 6•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1430064 will make this used. We didn't finish that pending Windows support in chan_signal. If that hasn't happened yet we might want to revisit that issue with a different approach for the signal handling, but I expect any approach we take is going to dispatch a quit message (and when we upgrade hyper it might even work properly :) I suggest we WONTFIX this issue in the interim.
Assignee | ||
Comment 7•6 years ago
|
||
Closing as suggested.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Comment 8•6 years ago
|
||
mozreview-review |
Comment on attachment 8985077 [details] Bug 1396820: Remove unused variant Quit in webdriver https://reviewboard.mozilla.org/r/250794/#review257244
Attachment #8985077 -
Flags: review?(james)
You need to log in
before you can comment on or make changes to this bug.
Description
•