Closed Bug 1396820 Opened 7 years ago Closed 6 years ago

warning: variant is never used: `Quit`

Categories

(Testing :: geckodriver, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Assigned: automatedtester)

Details

Attachments

(1 file)

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
jgraham:

> This is a longstanding warning. It will probably go away if we
> implement signal handling using the chan-signal crate.
whimboo:

> Interesting because AFAIR I haven't seen it when compiling
> geckodriver lately with webdriver-rust 0.27. Maybe I don't
> remember correctly.
whimboo:

> Ok, so this indeed goes back way longer. Thanks for mentioning
> this James.
Priority: -- → P3
Assignee: nobody → ato
Status: NEW → ASSIGNED
Oops, I didn’t mean to assign myself to this.
Assignee: ato → nobody
Status: ASSIGNED → NEW
Assignee: nobody → dburns
Attachment #8985077 - Flags: review?(james)
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.
Closing as suggested.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
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.

Attachment

General

Created:
Updated:
Size: