mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
fix reformatting for new syntax
This commit is contained in:
@ -443,7 +443,7 @@ fn reset_indentation(s: &str) -> String {
|
|||||||
|
|
||||||
for line in s.lines() {
|
for line in s.lines() {
|
||||||
let line = line.trim();
|
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);
|
indent = indent.saturating_sub(1);
|
||||||
}
|
}
|
||||||
let extra = if line.starts_with(':') || line.starts_with('?') { 1 } else { 0 };
|
let extra = if line.starts_with(':') || line.starts_with('?') { 1 } else { 0 };
|
||||||
|
Reference in New Issue
Block a user