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
+2 -1
View File
@@ -564,7 +564,8 @@ fn run(mut $sel, $builder: &Builder) -> Option<PathBuf> {
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 {