Merge "Fix lints from Rust 1.60.0" am: ff1750c5f6

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2068630

Change-Id: Ia8dc4506def7d905cf31bd5ad01683946d459277
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-04-21 05:53:47 +00:00 committed by Automerger Merge Worker
commit 9c0851cc4e

View file

@ -68,7 +68,7 @@ impl Metadata {
}
/// Calls AStatsManager_PullAtomMetadata_setAdditiveFields.
pub fn set_additive_fields(&mut self, additive_fields: &mut Vec<i32>) {
pub fn set_additive_fields(&mut self, additive_fields: &mut [i32]) {
// Safety: Metadata::new ensures that self.metadata is a valid object.
unsafe {
AStatsManager_PullAtomMetadata_setAdditiveFields(