File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,8 @@ impl Expression {
312312 let key = pred_key. take ( ) ;
313313 let val = pred_val. take ( ) ;
314314
315+ // In this context, the boolean to int conversion is confusing.
316+ #[ allow( clippy:: bool_to_int_with_if) ]
315317 let num_predicates = top. predicates . len ( )
316318 + if key. is_some ( ) { 1 } else { 0 }
317319 + top. nest_level as usize ;
Original file line number Diff line number Diff line change @@ -162,14 +162,14 @@ impl Families {
162162impl Deref for Families {
163163 type Target = [ Family ] ;
164164 fn deref ( & self ) -> & Self :: Target {
165- & * self . 0
165+ & self . 0
166166 }
167167}
168168
169169impl AsRef < [ Family ] > for Families {
170170 #[ inline]
171171 fn as_ref ( & self ) -> & [ Family ] {
172- & * self . 0
172+ & self . 0
173173 }
174174}
175175
@@ -222,14 +222,14 @@ impl HasAtomics {
222222impl Deref for HasAtomics {
223223 type Target = [ HasAtomic ] ;
224224 fn deref ( & self ) -> & Self :: Target {
225- & * self . 0
225+ & self . 0
226226 }
227227}
228228
229229impl AsRef < [ HasAtomic ] > for HasAtomics {
230230 #[ inline]
231231 fn as_ref ( & self ) -> & [ HasAtomic ] {
232- & * self . 0
232+ & self . 0
233233 }
234234}
235235
You can’t perform that action at this time.
0 commit comments