ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: remove unneeded &mut from edit_multiple_descriptions()

This commit is contained in:
Yuya Nishihara 2024-09-20 10:52:43 +09:00
parent dd9213a954
commit 3c04507097
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ pub(crate) fn cmd_describe(
missing,
duplicates,
unexpected,
} = edit_multiple_descriptions(&mut tx, &temp_commits, command.settings())?;
} = edit_multiple_descriptions(&tx, &temp_commits, command.settings())?;
if !missing.is_empty() {
return Err(user_error(format!(
"The description for the following commits were not found in the edited \

View file

@ -57,7 +57,7 @@ JJ: Lines starting with "JJ: " (like this one) will be removed.
/// Edits the descriptions of the given commits in a single editor session.
pub fn edit_multiple_descriptions(
tx: &mut WorkspaceCommandTransaction,
tx: &WorkspaceCommandTransaction,
commits: &[(&CommitId, Commit)],
settings: &UserSettings,
) -> Result<ParsedBulkEditMessage<CommitId>, CommandError> {