mirror of
https://github.com/sharkdp/bat
synced 2026-08-07 19:31:42 +00:00
Inline format! args wherever possible
This commit is contained in:
+1
-1
@@ -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