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
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
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)
}