Fix Rust-analyzer errors and warnings in blurmac (#37439)

I got 22 errors and 63 warnings when I opened the Servo project in
Visual Studio Code with the Rust-analyzer extension on Linux. The
`blurmac` package, which is vendored in the source tree, only needs to
be be compiled on macOS.

With this change I get zero errors and 2 unrelated warnings.

Testing: I don't have a mac and cannot test it there. I only tested it
building on Linux. I also did not test test the Bluetooth feature. I
think the change is pretty straightforward and unlikely to cause a major
regression.

Signed-off-by: Michael Mc Donnell <michael@mcdonnell.dk>
This commit is contained in:
Michael Mc Donnell 2025-06-14 02:08:07 -04:00 committed by GitHub
parent e6ae4434cb
commit a27f2bb84d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@
// <LICENSE.md or https://opensource.org/licenses/BSD-3-Clause>. // <LICENSE.md or https://opensource.org/licenses/BSD-3-Clause>.
// This file may not be copied, modified, or distributed except // This file may not be copied, modified, or distributed except
// according to those terms. // according to those terms.
#![cfg(target_os = "macos")]
#[macro_use] #[macro_use]
extern crate log; extern crate log;