Skip to content

Commit bea2c59

Browse files
committed
Clarify use of format_args in Debug for Literal
1 parent 4c4b4c4 commit bea2c59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libproc_macro/bridge/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ impl Clone for Literal {
205205
impl fmt::Debug for Literal {
206206
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
207207
f.debug_struct("Literal")
208+
// format the kind without quotes, as in `kind: Float`
208209
.field("kind", &format_args!("{}", &self.debug_kind()))
209210
.field("symbol", &self.symbol())
210211
// format `Some("...")` on one line even in {:#?} mode

0 commit comments

Comments
 (0)