File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1798,7 +1798,7 @@ fn is_ref_iterable_type(cx: &LateContext, e: &Expr) -> bool {
1798
1798
fn is_iterable_array ( ty : Ty ) -> bool {
1799
1799
// IntoIterator is currently only implemented for array sizes <= 32 in rustc
1800
1800
match ty. sty {
1801
- ty:: TyArray ( _, n) => ( 0 ..=32 ) . contains ( n. val . to_raw_bits ( ) . expect ( "array length" ) ) ,
1801
+ ty:: TyArray ( _, n) => ( 0 ..=32 ) . contains ( & n. val . to_raw_bits ( ) . expect ( "array length" ) ) ,
1802
1802
_ => false ,
1803
1803
}
1804
1804
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extern crate clippy_lints;
12
12
13
13
#[ plugin_registrar]
14
14
pub fn plugin_registrar ( reg : & mut Registry ) {
15
- if let Ok ( lint_store ) = reg. sess . lint_store . try_borrow ( ) {
15
+ reg. sess . lint_store . with_read_lock ( |lint_store| {
16
16
for ( lint, _, _) in lint_store. get_lint_groups ( ) {
17
17
if lint == "clippy" {
18
18
reg. sess
@@ -21,7 +21,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
21
21
return ;
22
22
}
23
23
}
24
- }
24
+ } ) ;
25
25
26
26
clippy_lints:: register_plugins ( reg) ;
27
27
}
You can’t perform that action at this time.
0 commit comments