We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f84cc2c + a854874 commit 475959dCopy full SHA for 475959d
src/lib.rs
@@ -12,7 +12,7 @@ extern crate clippy_lints;
12
13
#[plugin_registrar]
14
pub fn plugin_registrar(reg: &mut Registry) {
15
- if let Ok(lint_store) = reg.sess.lint_store.try_borrow() {
+ reg.sess.lint_store.with_read_lock(|lint_store| {
16
for (lint, _, _) in lint_store.get_lint_groups() {
17
if lint == "clippy" {
18
reg.sess
@@ -21,7 +21,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
21
return;
22
}
23
24
- }
+ });
25
26
clippy_lints::register_plugins(reg);
27
0 commit comments