mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-21 16:15:57 +00:00
Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible.
This commit is contained in:
parent
aa3c9475ab
commit
574edcf93c
|
@ -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, _| {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user