From 574edcf93c8799c709635e9d05a1c837a8c0be9a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 17 Jun 2020 18:11:19 -0500 Subject: [PATCH] Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible. --- src/lib.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 44a1407..47f111b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -81,14 +81,9 @@ impl TTS { .done(); builder .add_property("can_detect_screen_reader") - .with_getter(|_: &TTS, _| { - if cfg!(windows) { - true - } else { - false - } - }) + .with_getter(|_: &TTS, _| if cfg!(windows) { true } else { false }) .done(); + #[allow(unreachable_code)] builder .add_property("has_screen_reader") .with_getter(|_: &TTS, _| {