From b9039c3c2db4e47b13d13a3917528240624e2acf Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Tue, 14 May 2024 17:15:21 +0900 Subject: [PATCH] cli: remove unneeded lifetime bound from check_rewritable() --- cli/src/cli_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index fb8778f8f8..2acb4d4f8d 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -1160,7 +1160,7 @@ impl WorkspaceCommandHelper { } pub fn check_rewritable<'a>( - &'a self, + &self, commits: impl IntoIterator, ) -> Result<(), CommandError> { self.check_repo_rewritable(self.repo().as_ref(), commits)