diff options
author | 2022-11-17 09:36:58 +0000 | |
---|---|---|
committer | 2022-11-17 09:36:58 +0000 | |
commit | 8a7d59c60e7cc587cc67bdf697ef8edb18a9bc3d (patch) | |
tree | 1a931e2ffce1e22a2fd1d6ec86b4511319448de0 /libs | |
parent | 8353dd2639c9dc0e143f720427154d688b173cab (diff) | |
parent | 4247166606a1f293e0489a5e70040f01f584aa9e (diff) |
Merge "Fix warnings from rustc 1.65.0"
Diffstat (limited to 'libs')
-rw-r--r-- | libs/binder/rust/tests/integration.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/rust/tests/integration.rs b/libs/binder/rust/tests/integration.rs index 4e10fa915d..ca2cedc19d 100644 --- a/libs/binder/rust/tests/integration.rs +++ b/libs/binder/rust/tests/integration.rs @@ -502,7 +502,7 @@ mod tests { let instances = binder::get_declared_instances("android.hardware.light.ILights") .expect("Could not get declared instances"); - let expected_defaults = if has_lights { 1 } else { 0 }; + let expected_defaults = usize::from(has_lights); assert_eq!(expected_defaults, instances.iter().filter(|i| i.as_str() == "default").count()); } |