diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-10-11 18:00:29 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-10-11 18:17:09 +0200 |
commit | 6055f364bd1d341da8fa881741ec36ab0abf0a7a (patch) | |
tree | 1c931e49d9fd88a11a662d86799e6be7a67c9f86 /src/codegen/struct_layout.rs | |
parent | c137196c9f4411456284e2205db314a4ae700f9f (diff) |
Minor cleanup after #1419.v0.42.2
The previous PR ended up with a lot of just-called-once methods. Just inline
them since they're confusing otherwise.
Also avoid testing all the variants of an enum if there was a match already, or
if the enum is not anonymous. This is mostly a minor optimization.
Diffstat (limited to 'src/codegen/struct_layout.rs')
0 files changed, 0 insertions, 0 deletions