mirror of https://github.com/ndarilek/tts-rs.git
Use attributes instead.
This commit is contained in:
parent
86b2e07f15
commit
8f5f58028a
|
@ -531,8 +531,10 @@ impl Tts {
|
||||||
/*
|
/*
|
||||||
* Returns `true` if a screen reader is available to provide speech.
|
* Returns `true` if a screen reader is available to provide speech.
|
||||||
*/
|
*/
|
||||||
|
#[allow(unreachable_code)]
|
||||||
pub fn screen_reader_available() -> bool {
|
pub fn screen_reader_available() -> bool {
|
||||||
if cfg!(target_os = "windows") {
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
#[cfg(feature = "tolk")]
|
#[cfg(feature = "tolk")]
|
||||||
{
|
{
|
||||||
let tolk = tolk::Tolk::new();
|
let tolk = tolk::Tolk::new();
|
||||||
|
@ -540,9 +542,8 @@ impl Tts {
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "tolk"))]
|
#[cfg(not(feature = "tolk"))]
|
||||||
return false;
|
return false;
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
}
|
||||||
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue