mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-31 23:25:09 +00:00
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:
parent
cc5b34809c
commit
6d6f2c6dec
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user