We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cab3b58 + 7efb73f commit 6cd9c86Copy full SHA for 6cd9c86
crates/tt/src/lib.rs
@@ -825,12 +825,12 @@ impl<S> Literal<S> {
825
let symbol =
826
self.0.symbol.as_str().strip_prefix('-').unwrap_or(self.0.symbol.as_str());
827
match self.0.kind {
828
- LitKind::Byte => write!(f, "b'{}'", symbol),
829
- LitKind::Char => write!(f, "'{}'", symbol),
830
- LitKind::Integer | LitKind::Float | LitKind::Err(_) => write!(f, "{}", symbol),
831
- LitKind::Str => write!(f, "\"{}\"", symbol),
832
- LitKind::ByteStr => write!(f, "b\"{}\"", symbol),
833
- LitKind::CStr => write!(f, "c\"{}\"", symbol),
+ LitKind::Byte => write!(f, "b'{symbol}'"),
+ LitKind::Char => write!(f, "'{symbol}'"),
+ LitKind::Integer | LitKind::Float | LitKind::Err(_) => write!(f, "{symbol}"),
+ LitKind::Str => write!(f, "\"{symbol}\""),
+ LitKind::ByteStr => write!(f, "b\"{symbol}\""),
+ LitKind::CStr => write!(f, "c\"{symbol}\""),
834
LitKind::StrRaw(num_of_hashes) => {
835
let num_of_hashes = num_of_hashes as usize;
836
write!(
0 commit comments