Skip to content

Commit 2929af6

Browse files
committed
ir: Deindent some code trivially.
1 parent 0153dfe commit 2929af6

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

src/ir/analysis/derive.rs

+17-18
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,24 @@ impl<'ctx> CannotDerive<'ctx> {
240240
self.derive_trait
241241
);
242242
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-
}
261243
}
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;
262261
}
263262
TypeKind::Vector(t, len) => {
264263
let inner_type =

0 commit comments

Comments
 (0)