Skip to content

Commit afdd92d

Browse files
committed
Use "contains()" to make clippy happy
Replace "iter().any()" with "contains()" to make clippy happy. Signed-off-by: Sergio Lopez <[email protected]>
1 parent 67fe3c0 commit afdd92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/muvm/src/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn prepare_env_vars(env: Vec<(String, Option<String>)>) -> Result<HashMap<St
4949
match fs::read_to_string("/proc/device-tree/compatible") {
5050
Ok(compatible) => {
5151
for compat_id in compatible.split('\0') {
52-
if ASAHI_SOC_COMPAT_IDS.iter().any(|&s| s == compat_id) {
52+
if ASAHI_SOC_COMPAT_IDS.contains(&compat_id) {
5353
env_map.insert(
5454
"MESA_LOADER_DRIVER_OVERRIDE".to_owned(),
5555
"asahi".to_owned(),

0 commit comments

Comments
 (0)