summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharisee <chiw@google.com>2024-03-27 23:45:23 +0000
committerCharisee Chiw <chiw@google.com>2024-03-27 23:46:39 +0000
commit95ea3ceef5006c277605dd15a5f320e30e05e882 (patch)
tree75dcc3c4b657cfd453af7f42a0c7cf7bded8e294
parent23f9c84b329f2ebf5198d3364ce080aa6b95c5c1 (diff)
downloadsecurity-95ea3ceef5006c277605dd15a5f320e30e05e882.tar.gz
Update needed for Rust v1.77.0
error: field `0` is never read --> system/security/keystore2/src/database.rs:848:31 | 848 | pub struct PerBootDbKeepAlive(Connection); | ------------------ ^^^^^^^^^^ | | | field in this struct | = 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 wh ile preserving the field numbering, or remove the field | 848 | pub struct PerBootDbKeepAlive(()); | ~~ error: aborting due to 1 previous error Bug: 330185853 ./test_compiler.py --prebuilt-path dist/rust-dev.tar.xz --target aosp_cf_x86_64_phone --image Test: m rust Change-Id: I4cb81c955372c4f8f50b940b389f2d7cfc5d3ce9
-rw-r--r--keystore2/src/database.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/keystore2/src/database.rs b/keystore2/src/database.rs
index f343cb33..113c049b 100644
--- a/keystore2/src/database.rs
+++ b/keystore2/src/database.rs
@@ -845,6 +845,7 @@ impl AuthTokenEntry {
/// Shared in-memory databases get destroyed as soon as the last connection to them gets closed.
/// This object does not allow access to the database connection. But it keeps a database
/// connection alive in order to keep the in memory per boot database alive.
+#[allow(dead_code)]
pub struct PerBootDbKeepAlive(Connection);
impl KeystoreDB {