Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Oct 18, 2024
1 parent aadc92d commit 70ee1a2
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions crates/tauri-cli/src/mobile/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<String>> {
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())
})
}

Expand Down

0 comments on commit 70ee1a2

Please sign in to comment.