Don't inject clippy into rls on stable/beta

This commit is contained in:
Oliver Schneider 2018-04-11 14:56:59 +02:00
parent ca26ef321c
commit 34956c8e8e
No known key found for this signature in database
GPG key ID: 1D5CB4FC597C3004

View file

@ -564,7 +564,8 @@ tool_extended!((self, builder),
target: self.target,
extra_features: Vec::new(),
});
if clippy.is_some() {
let channel = &builder.config.channel;
if clippy.is_some() && channel != "stable" && channel != "beta" {
self.extra_features.push("clippy".to_owned());
}
builder.ensure(native::Openssl {