summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expand.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/expand.rs b/src/expand.rs
index 049b04d..5933b2c 100644
--- a/src/expand.rs
+++ b/src/expand.rs
@@ -135,8 +135,10 @@ fn apply_impls(
continue;
};
- applied_content += "\n";
- applied_content += impled_code.join("\n").as_str();
+ if impled_code.len() > 0 {
+ applied_content += "\n";
+ applied_content += impled_code.join("\n").as_str();
+ }
} else {
// Other content directly appended
applied_content += "\n";