Skip to content

Commit 05db693

Browse files
committed
small win
1 parent 87a8769 commit 05db693

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

crates/biome_cli/src/execute/traverse.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,8 @@ fn traverse_inputs(
170170
}));
171171

172172
let paths = ctx.evaluated_paths();
173-
let dome = Dome::new(paths);
174-
let mut iter = dome.iter();
175173
fs.traversal(Box::new(|scope: &dyn TraversalScope| {
176-
while let Some(path) = iter.next_config() {
177-
scope.handle(ctx, path.to_path_buf());
178-
}
179-
180-
while let Some(path) = iter.next_manifest() {
181-
scope.handle(ctx, path.to_path_buf());
182-
}
183-
184-
for path in iter {
174+
for path in paths {
185175
scope.handle(ctx, path.to_path_buf());
186176
}
187177
}));

crates/biome_service/src/workspace/scanner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn scan_folder(folder: &Utf8Path, ctx: ScanContext) -> (Duration, Vec<BiomePath>
104104

105105
let mut configs = Vec::new();
106106
let mut manifests = Vec::new();
107-
let mut handleable_paths = Vec::with_capacity(evaluated_paths.len());
107+
let mut handleable_paths = Vec::new();
108108
let mut ignore_paths = Vec::new();
109109
for path in evaluated_paths {
110110
if path.is_config() {

0 commit comments

Comments
 (0)