(&mut self)
| 53 | } |
| 54 | |
| 55 | /// Same as [`Self::write_line`], kept for pretty-printers written |
| 56 | /// against the older Formatter-threading API. `f` is unused now that |
| 57 | /// output is buffered — it's `f`'s caller, [`PrettyDisplay::fmt`], that |
| 58 | /// flushes the buffer once the whole tree has been walked. |
| 59 | pub fn writeln(&mut self, _f: &mut Formatter<'_>, line: impl AsRef<str>) -> fmt::Result { |
| 60 | self.write_line(line) |