Skip to content

Commit

Permalink
rustbuild: get an empty slice the straight-forward way
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Dec 27, 2016
1 parent d849b13 commit 9d3616f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/step.rs
Expand Up @@ -843,7 +843,7 @@ invalid rule dependency graph detected, was a rule added and maybe typo'd?
let arr = if rule.host {
if self.build.flags.target.len() > 0 &&
self.build.flags.host.len() == 0 {
&hosts[..0]
&[]
} else {
hosts
}
Expand Down

0 comments on commit 9d3616f

Please sign in to comment.