Avoid an allocation in rewrite_int_lit
This commit is contained in:
parent
008b3df97d
commit
b552eb9e3a
@ -1330,7 +1330,7 @@ fn rewrite_int_lit(
|
|||||||
format!(
|
format!(
|
||||||
"0x{}{}",
|
"0x{}{}",
|
||||||
hex_lit,
|
hex_lit,
|
||||||
token_lit.suffix.map_or(String::new(), |s| s.to_string())
|
token_lit.suffix.as_ref().map_or("", |s| s.as_str())
|
||||||
),
|
),
|
||||||
context.config.max_width(),
|
context.config.max_width(),
|
||||||
shape,
|
shape,
|
||||||
|
Loading…
Reference in New Issue
Block a user