mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-06 21:32:27 +01:00
Inline format!
args wherever possible
This commit is contained in:
@@ -56,7 +56,7 @@ impl Decoration for LineNumberDecoration {
|
||||
|
||||
self.cached_wrap.clone()
|
||||
} else {
|
||||
let plain: String = format!("{:4}", line_number);
|
||||
let plain: String = format!("{line_number:4}");
|
||||
DecorationText {
|
||||
width: plain.len(),
|
||||
text: self.color.paint(plain).to_string(),
|
||||
|
Reference in New Issue
Block a user