rustbuild: get an empty slice the straight-forward way
This commit is contained in:
parent
d849b13267
commit
9d3616f78d
@ -843,7 +843,7 @@ fn plan(&self) -> Vec<Step<'a>> {
|
||||
let arr = if rule.host {
|
||||
if self.build.flags.target.len() > 0 &&
|
||||
self.build.flags.host.len() == 0 {
|
||||
&hosts[..0]
|
||||
&[]
|
||||
} else {
|
||||
hosts
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user