Merge pull request #2681 from phansch/fix_latest_nightly_breakage
Fix latest nightly breakage
This commit is contained in:
commit
475959d905
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -21,7 +21,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
clippy_lints::register_plugins(reg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue