File tree 1 file changed +17
-18
lines changed
1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -240,25 +240,24 @@ impl<'ctx> CannotDerive<'ctx> {
240
240
self . derive_trait
241
241
) ;
242
242
return CanDerive :: No ;
243
- } else {
244
- if self . derive_trait . can_derive_large_array ( ) {
245
- trace ! ( " array can derive {}" , self . derive_trait) ;
246
- return CanDerive :: Yes ;
247
- } else {
248
- if len <= RUST_DERIVE_IN_ARRAY_LIMIT {
249
- trace ! (
250
- " array is small enough to derive {}" ,
251
- self . derive_trait
252
- ) ;
253
- return CanDerive :: Yes ;
254
- } else {
255
- trace ! (
256
- " array is too large to derive {}, but it may be implemented" , self . derive_trait
257
- ) ;
258
- return CanDerive :: Manually ;
259
- }
260
- }
261
243
}
244
+
245
+ if self . derive_trait . can_derive_large_array ( ) {
246
+ trace ! ( " array can derive {}" , self . derive_trait) ;
247
+ return CanDerive :: Yes ;
248
+ }
249
+
250
+ if len > RUST_DERIVE_IN_ARRAY_LIMIT {
251
+ trace ! (
252
+ " array is too large to derive {}, but it may be implemented" , self . derive_trait
253
+ ) ;
254
+ return CanDerive :: Manually ;
255
+ }
256
+ trace ! (
257
+ " array is small enough to derive {}" ,
258
+ self . derive_trait
259
+ ) ;
260
+ return CanDerive :: Yes ;
262
261
}
263
262
TypeKind :: Vector ( t, len) => {
264
263
let inner_type =
You can’t perform that action at this time.
0 commit comments