Skip to content

Commit 9d3616f

Browse files
committed
rustbuild: get an empty slice the straight-forward way
1 parent d849b13 commit 9d3616f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/step.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ invalid rule dependency graph detected, was a rule added and maybe typo'd?
843843
let arr = if rule.host {
844844
if self.build.flags.target.len() > 0 &&
845845
self.build.flags.host.len() == 0 {
846-
&hosts[..0]
846+
&[]
847847
} else {
848848
hosts
849849
}

0 commit comments

Comments
 (0)