(out: &mut String, unit: Option<&str>, depth: usize)
| 178 | } |
| 179 | |
| 180 | fn write_indent(out: &mut String, unit: Option<&str>, depth: usize) { |
| 181 | if let Some(u) = unit { |
| 182 | out.push('\n'); |
| 183 | for _ in 0..depth { out.push_str(u); } |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | fn escape_string(s: &str, out: &mut String, ensure_ascii: bool) { |
| 188 | out.push('"'); |
no test coverage detected