Remove space after negative sign in Literal to_string

This commit is contained in:
David Tolnay
2021-07-19 01:16:36 -07:00
parent d5fd37f00f
commit 3744dc8687
4 changed files with 8 additions and 4 deletions

View File

@@ -582,6 +582,9 @@ impl server::Literal for Rustc<'_> {
Ok(Literal { lit, span: self.call_site })
}
fn to_string(&mut self, literal: &Self::Literal) -> String {
literal.lit.to_string()
}
fn debug_kind(&mut self, literal: &Self::Literal) -> String {
format!("{:?}", literal.lit.kind)
}