mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Remove collapsing space
behaviour from Printer
(#4782)
This commit is contained in:
parent
5f4bce6d2b
commit
28aad95414
2 changed files with 12 additions and 31 deletions
|
@ -144,6 +144,12 @@ impl std::fmt::Display for DisplayDocument<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for DisplayDocument<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
std::fmt::Display::fmt(self, f)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
struct IrFormatContext<'a> {
|
||||
/// The interned elements that have been printed to this point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue