repo: Change name for unused closure argument

The previous name violated the "snake case" convention for variable names. I
suspect the intention was to use `RewriteRootCommit` as a type declaration, not
the argument name. Since the argument isn't used, we can use an underscore as
the name and leave the type declaration.

#cleanup
This commit is contained in:
Evan Mesterhazy 2025-02-08 10:02:08 -05:00
parent cc5b34809c
commit 6d6f2c6dec

View File

@ -1386,7 +1386,7 @@ impl MutableRepo {
self.maybe_abandon_wc_commit(&workspace_id)?;
self.add_head(commit)?;
self.set_wc_commit(workspace_id, commit.id().clone())
.map_err(|RewriteRootCommit| EditCommitError::RewriteRootCommit)
.map_err(|_: RewriteRootCommit| EditCommitError::RewriteRootCommit)
}
fn maybe_abandon_wc_commit(