Skip to content

Commit 4977726

Browse files
committed
should_run path use as_str() to avoid an allocation
1 parent 8518d2b commit 4977726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl Step for Profile {
9191

9292
fn should_run(mut run: ShouldRun<'_>) -> ShouldRun<'_> {
9393
for choice in Profile::all() {
94-
run = run.alias(&choice.to_string());
94+
run = run.alias(choice.as_str());
9595
}
9696
run
9797
}

0 commit comments

Comments
 (0)