Skip to content

Commit a20371a

Browse files
committed
add the missing cfg for std in fmt
1 parent f709873 commit a20371a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Display {
4141
None => return,
4242
};
4343

44-
let arg = if next == '}' {
44+
let arg = if core::cfg!(feature = "std") && next == '}' {
4545
quote_spanned!(span=> , (&#ident).get_display())
4646
} else {
4747
quote_spanned!(span=> , #ident)

0 commit comments

Comments
 (0)