From 3c0450709722512916a23579c1a26a9bb7860d50 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 20 Sep 2024 10:52:43 +0900 Subject: [PATCH] cli: remove unneeded &mut from edit_multiple_descriptions() --- cli/src/commands/describe.rs | 2 +- cli/src/description_util.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/describe.rs b/cli/src/commands/describe.rs index b4c1641c8..2c0f1daeb 100644 --- a/cli/src/commands/describe.rs +++ b/cli/src/commands/describe.rs @@ -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 \ diff --git a/cli/src/description_util.rs b/cli/src/description_util.rs index 7b13e3cc1..6d14d1c62 100644 --- a/cli/src/description_util.rs +++ b/cli/src/description_util.rs @@ -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, CommandError> {