summaryrefslogtreecommitdiffstats
path: root/src/handlers/hunk_header.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/hunk_header.rs')
-rw-r--r--src/handlers/hunk_header.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/handlers/hunk_header.rs b/src/handlers/hunk_header.rs
index add903d6..251e341d 100644
--- a/src/handlers/hunk_header.rs
+++ b/src/handlers/hunk_header.rs
@@ -215,7 +215,7 @@ pub fn write_hunk_header(
let line = if config.color_only {
line.to_string()
} else if !code_fragment.is_empty() {
- format!("{} ", code_fragment)
+ format!("{code_fragment} ")
} else {
"".to_string()
};
@@ -292,8 +292,7 @@ fn write_to_output_buffer(
let space = if line.is_empty() { " " } else { "" };
let _ = write!(
&mut painter.output_buffer,
- "{}:{}",
- file_with_line_number, space
+ "{file_with_line_number}:{space}",
);
}
if !line.is_empty() {