mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-25 09:02:46 +03:00
fix reformatting for new syntax
This commit is contained in:
parent
c7d98b9ee1
commit
1d826e96de
@ -443,7 +443,7 @@ fn reset_indentation(s: &str) -> String {
|
||||
|
||||
for line in s.lines() {
|
||||
let line = line.trim();
|
||||
if line.starts_with('}') || line.ends_with('}') {
|
||||
if line.starts_with('}') || (line.ends_with('}') && !line.starts_with('*')) {
|
||||
indent = indent.saturating_sub(1);
|
||||
}
|
||||
let extra = if line.starts_with(':') || line.starts_with('?') { 1 } else { 0 };
|
||||
|
Loading…
Reference in New Issue
Block a user