Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible.

This commit is contained in:
Nolan Darilek 2020-06-17 18:11:19 -05:00
parent aa3c9475ab
commit 574edcf93c

View File

@ -81,14 +81,9 @@ impl TTS {
.done(); .done();
builder builder
.add_property("can_detect_screen_reader") .add_property("can_detect_screen_reader")
.with_getter(|_: &TTS, _| { .with_getter(|_: &TTS, _| if cfg!(windows) { true } else { false })
if cfg!(windows) {
true
} else {
false
}
})
.done(); .done();
#[allow(unreachable_code)]
builder builder
.add_property("has_screen_reader") .add_property("has_screen_reader")
.with_getter(|_: &TTS, _| { .with_getter(|_: &TTS, _| {