Fix lints from Rust 1.60.0

Bug: 222737227
Test: m rust
Change-Id: Idd2c37516565950d82781b5cb05095548368d5fd
This commit is contained in:
Chris Wailes 2022-04-19 17:25:32 -07:00
parent 64f953e287
commit 96c9b1f423

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(