Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93028bc1 authored by Stephen Hines's avatar Stephen Hines
Browse files

Fix clippy lints for Bluetooth for 1.79.0 update

```
error: field `btif_avrcp` is never read
  --> packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/media_service.rs:37:9
   |
32 | pub struct MediaServiceImpl {
   |            ---------------- field in this struct
...
37 |     pub btif_avrcp: Arc<Mutex<Avrcp>>,
   |         ^^^^^^^^^^
   |
   = note: `MediaServiceImpl` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`
```

Bug: http://b/346588808
Bug: 346588808
Test: ./toolchain/android_rust/tools/test_compiler.py --target aosp_cf_x86_64_phone --all-rust --reuse-prebuilt
Test: m (with new toolchain)
Change-Id: I8c1d4e64b1bac21f49a69dfe6ae4be321ae09ca0
parent 7bdd7465
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ pub struct MediaServiceImpl {
    rt: Arc<Runtime>,
    pub btif_a2dp: Arc<Mutex<A2dp>>,
    btif_a2dp_sink: Arc<Mutex<A2dpSink>>,
    #[allow(dead_code)]
    pub btif_avrcp: Arc<Mutex<Avrcp>>,
}