Skip to content

Commit d2e7baa

Browse files
committed
style(cli): inline format args in blame error messages (clippy::uninlined-format-args)
1 parent a2f66de commit d2e7baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plumbing/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ fn parse_ignore_revisions(
9090
.with_context(|| "Failed to find object")?
9191
.peel_to_kind(gix::object::Kind::Commit)
9292
.with_context(|| match context {
93-
Some((path, line)) => format!("Revision '{}' at line {} in file '{}' is not a commit (hint: use a commit SHA or tag that points to a commit)", rev_str, line, path.display()),
94-
None => format!("Revision '{}' is not a commit (hint: use a commit SHA or tag that points to a commit)", rev_str),
93+
Some((path, line)) => format!("Revision '{rev_str}' at line {line} in file '{}' is not a commit (hint: use a commit SHA or tag that points to a commit)", path.display()),
94+
None => format!("Revision '{rev_str}' is not a commit (hint: use a commit SHA or tag that points to a commit)"),
9595
})?;
9696

9797
Ok(peeled.id)

0 commit comments

Comments
 (0)