Skip to content

Commit be674ce

Browse files
authored
fix: resolve clippy lint errors with inline format arguments (#133)
1 parent 255ca4f commit be674ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/blame.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl Blame {
308308
let hunk = self
309309
.inner
310310
.get_index(index as usize)
311-
.ok_or_else(|| Error::new(Status::InvalidArg, format!("No blame hunk found at index {}", index)))?;
311+
.ok_or_else(|| Error::new(Status::InvalidArg, format!("No blame hunk found at index {index}")))?;
312312

313313
Ok(BlameHunk::from(&hunk))
314314
}
@@ -331,7 +331,7 @@ impl Blame {
331331
let hunk = self
332332
.inner
333333
.get_line(line as usize)
334-
.ok_or_else(|| Error::new(Status::InvalidArg, format!("No blame hunk found for line {}", line)))?;
334+
.ok_or_else(|| Error::new(Status::InvalidArg, format!("No blame hunk found for line {line}")))?;
335335

336336
Ok(BlameHunk::from(&hunk))
337337
}

src/reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ impl Reference {
451451
.rename(
452452
&new_name,
453453
force.unwrap_or_default(),
454-
&msg.unwrap_or(format!("Renaming reference into {}", new_name)),
454+
&msg.unwrap_or(format!("Renaming reference into {new_name}")),
455455
)
456456
.map_err(crate::Error::from)
457457
.map_err(|e| e.into())

0 commit comments

Comments
 (0)