cleanup: format commands.rs, missed in previous commit

This commit is contained in:
Martin von Zweigbergk 2022-01-27 20:45:53 -08:00
parent d588a309da
commit bedf96475d

View file

@ -3157,7 +3157,11 @@ fn cmd_rebase(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result
}
workspace_command.check_rewriteable(&old_commit)?;
for parent in &new_parents {
if workspace_command.repo.index().is_ancestor(old_commit.id(), parent.id()) {
if workspace_command
.repo
.index()
.is_ancestor(old_commit.id(), parent.id())
{
return Err(CommandError::UserError(format!(
"Cannot rebase {} onto descendant {}",
short_commit_hash(old_commit.id()),