From 709946c1b49114b71d3080bb8d97e63525f40fd9 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 17 Oct 2025 15:02:53 +0100 Subject: chore: cargo update update patches ahead of wider upgrade. clippy required some autofixes --- src/lib/git/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/git/mod.rs') diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs index 06573eb..b9711ae 100644 --- a/src/lib/git/mod.rs +++ b/src/lib/git/mod.rs @@ -459,8 +459,7 @@ impl RepoActions for Repo { }) { None => { bail!(format!( - "{} is not an ancestor of {}", - latest_commit, base_commit + "{latest_commit} is not an ancestor of {base_commit}" )); } Some(res) => res.context("revwalk failed to reveal commit")?, @@ -671,7 +670,7 @@ impl RepoActions for Repo { if !applied_oid.to_string().eq(commit_id) { bail!( "when applied the patch commit id ({}) doesn't match the one specified in the event tag ({})", - applied_oid.to_string(), + applied_oid, get_commit_id_from_patch(patch)?, ); } -- cgit v1.2.3