summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index 27ddcfea..cdf0134a 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -1978,20 +1978,12 @@ impl MethodCodegen for Method {
assert!({
let cc = &ctx.options().codegen_config;
match self.kind() {
- MethodKind::Constructor => {
- cc.constructors()
- }
- MethodKind::Destructor => {
- cc.destructors()
- }
- MethodKind::VirtualDestructor { .. } => {
- cc.destructors()
- }
- MethodKind::Static
- | MethodKind::Normal
- | MethodKind::Virtual { .. } => {
- cc.methods()
- }
+ MethodKind::Constructor => cc.constructors(),
+ MethodKind::Destructor => cc.destructors(),
+ MethodKind::VirtualDestructor { .. } => cc.destructors(),
+ MethodKind::Static |
+ MethodKind::Normal |
+ MethodKind::Virtual { .. } => cc.methods(),
}
});