diff --git a/crates/voelin-android/src/bridge.rs b/crates/voelin-android/src/bridge.rs index f7d442d..9bee6f3 100644 --- a/crates/voelin-android/src/bridge.rs +++ b/crates/voelin-android/src/bridge.rs @@ -331,7 +331,9 @@ fn on_audio_input<'local>( channels: jint, ) -> Result { thread_local! { - // One per capture thread, reused for every call. + // One per capture thread, reused for every call. (It is `const`; + // clippy for Android does not see that through the expansion.) + #[allow(clippy::missing_const_for_thread_local)] static BUFFER: std::cell::RefCell> = const { std::cell::RefCell::new(Vec::new()) }; } let id = id as u64; diff --git a/crates/voelin-ui/src/app.rs b/crates/voelin-ui/src/app.rs index fc42ae1..07a07a6 100644 --- a/crates/voelin-ui/src/app.rs +++ b/crates/voelin-ui/src/app.rs @@ -395,6 +395,9 @@ pub(crate) struct App { } thread_local! { + // It is `const`; clippy for Android targets does not see that through + // the macro's expansion there. + #[allow(clippy::missing_const_for_thread_local)] static APP: RefCell> = const { RefCell::new(None) }; }