mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
e6ae4434cb
commit
a27f2bb84d
1 changed files with 1 additions and 0 deletions
1
third_party/blurmac/src/lib.rs
vendored
1
third_party/blurmac/src/lib.rs
vendored
|
@ -4,6 +4,7 @@
|
|||
// <LICENSE.md or https://opensource.org/licenses/BSD-3-Clause>.
|
||||
// This file may not be copied, modified, or distributed except
|
||||
// according to those terms.
|
||||
#![cfg(target_os = "macos")]
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue