summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2025-07-04 16:19:12 +0200
committerLinus Färnstrand <linus@mullvad.net>2025-07-08 09:34:57 +0200
commit64cd632e112e4c72840d5098957f5b6c69b65a6b (patch)
treeecf4a3b2860692c194138c9d25e8095fb30a1dc6
parent9b4cc0041309f75f28cb6888852aa6b478919267 (diff)
downloadmullvadvpn-64cd632e112e4c72840d5098957f5b6c69b65a6b.tar.xz
mullvadvpn-64cd632e112e4c72840d5098957f5b6c69b65a6b.zip
Ignore warning from unmaintained objc crate on msg_send macro
-rw-r--r--installer-downloader/src/cacao_impl/ui.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/installer-downloader/src/cacao_impl/ui.rs b/installer-downloader/src/cacao_impl/ui.rs
index 4bbab14332..d556e0512f 100644
--- a/installer-downloader/src/cacao_impl/ui.rs
+++ b/installer-downloader/src/cacao_impl/ui.rs
@@ -41,6 +41,11 @@ static BANNER_COLOR: LazyLock<Color> = LazyLock::new(|| {
// calibrated uses the current color profile.
// Maybe using calibrated colors is more correct? Rendering different colors *definitely*
// is not.
+ // ---
+ // The unexpected cfg warning stems from https://github.com/SSheldon/rust-objc/issues/125
+ // We need to ignore this until cacao migrates to another objc implementation,
+ // or we use another `msg_send!` macro ourselves.
+ #[allow(unexpected_cfgs)]
let id =
// SAFETY: This function returns a pointer to a refcounted NSColor instance, and panics if
// a null pointer is passed.