Skip to content

Commit eef43e7

Browse files
committed
Trim '_' from generated module names
1 parent c3a789a commit eef43e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instantiation/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ fn mangle_name(str: &str) -> String {
342342
}
343343
result.push(if c.is_alphanumeric() { c } else { '_' });
344344
}
345-
result
345+
result.trim_matches('_').to_owned()
346346
}
347347

348348
impl InstantiationContext<'_, '_> {

0 commit comments

Comments
 (0)