From c3a74935a11af1562766772c848ea267c570d863 Mon Sep 17 00:00:00 2001 From: Charisee Date: Wed, 27 Mar 2024 20:42:11 +0000 Subject: [PATCH] Update needed for Rust v1.77.0 error: field `0` is never read --> hardware/interfaces/security/authgraph/default/src/main.rs:34:24 | 34 | struct HalServiceError(String); | --------------- ^^^^^^ | | | field in this struct | = note: `HalServiceError` has derived impls for the traits `Clone` and `Debug`, but these are intenti onally ignored during dead code analysis = note: `-D dead-code` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dead_code)]` help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 34 | struct HalServiceError(()); | ~~ error: aborting due to 1 previous error Test: ./build.py --lto thin bug: http://b/330185853 Change-Id: I08b79176fb5edea9e24990e4884e521c24660d68 --- security/authgraph/default/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/authgraph/default/src/main.rs b/security/authgraph/default/src/main.rs index 65ced75932..0f6e05c09e 100644 --- a/security/authgraph/default/src/main.rs +++ b/security/authgraph/default/src/main.rs @@ -40,7 +40,7 @@ impl From for HalServiceError { } fn main() { - if let Err(e) = inner_main() { + if let Err(HalServiceError(e)) = inner_main() { panic!("HAL service failed: {:?}", e); } }