diff --git a/crates/tauri-cli/src/mobile/init.rs b/crates/tauri-cli/src/mobile/init.rs index 4c2a29e34f6a..032c898686e6 100644 --- a/crates/tauri-cli/src/mobile/init.rs +++ b/crates/tauri-cli/src/mobile/init.rs @@ -198,17 +198,9 @@ fn get_str<'a>(helper: &'a Helper) -> &'a str { fn get_str_array(helper: &Helper, formatter: impl Fn(&str) -> String) -> Option> { helper.param(0).and_then(|v| { - v.value().as_array().and_then(|arr| { - arr - .iter() - .map(|val| { - val.as_str().map( - #[allow(clippy::redundant_closure)] - |s| formatter(s), - ) - }) - .collect() - }) + v.value() + .as_array() + .and_then(|arr| arr.iter().map(|val| val.as_str().map(formatter)).collect()) }) }