Skip to content

Commit

Permalink
Merge pull request #2681 from phansch/fix_latest_nightly_breakage
Browse files Browse the repository at this point in the history
Fix latest nightly breakage
  • Loading branch information
oli-obk committed Apr 19, 2018
2 parents f84cc2c + a854874 commit 475959d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -12,7 +12,7 @@ extern crate clippy_lints;

#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
if let Ok(lint_store) = reg.sess.lint_store.try_borrow() {
reg.sess.lint_store.with_read_lock(|lint_store| {
for (lint, _, _) in lint_store.get_lint_groups() {
if lint == "clippy" {
reg.sess
Expand All @@ -21,7 +21,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
return;
}
}
}
});

clippy_lints::register_plugins(reg);
}
Expand Down

0 comments on commit 475959d

Please sign in to comment.