Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit a33f0db

Browse files
committed
Clippy
1 parent 2346392 commit a33f0db

File tree

1 file changed

+1
-3
lines changed
  • wasm-rpc-stubgen/src/commands

1 file changed

+1
-3
lines changed

wasm-rpc-stubgen/src/commands/app.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,18 +1295,16 @@ fn compile_and_collect_globs(root_dir: &Path, globs: &[String]) -> Result<Vec<Pa
12951295
.collect::<Result<Vec<_>, _>>()
12961296
.map_err(|err| anyhow!(err))?
12971297
.iter()
1298-
.map(|glob| {
1298+
.flat_map(|glob| {
12991299
glob.walk_with_behavior(
13001300
root_dir,
13011301
WalkBehavior {
13021302
link: LinkBehavior::ReadFile,
13031303
..WalkBehavior::default()
13041304
},
13051305
)
1306-
.into_iter()
13071306
.collect::<Vec<_>>()
13081307
})
1309-
.flatten()
13101308
.map(|walk_item| {
13111309
walk_item
13121310
.map(|entry| entry.path().to_path_buf())

0 commit comments

Comments
 (0)