From 9a3127e6598670cba2d83c90a785588c7df89484 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 20 Oct 2021 16:42:12 -0700 Subject: [PATCH] cli: remove mistakenly prefixed underscore from used variable --- src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 97a83de77..744dd3cba 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -3284,11 +3284,11 @@ fn cmd_op_undo( ui: &mut Ui, command: &CommandHelper, _op_matches: &ArgMatches, - _cmd_matches: &ArgMatches, + cmd_matches: &ArgMatches, ) -> Result<(), CommandError> { let mut repo_command = command.repo_helper(ui)?; let repo = repo_command.repo(); - let bad_op = resolve_single_op(repo, _cmd_matches.value_of("operation").unwrap())?; + let bad_op = resolve_single_op(repo, cmd_matches.value_of("operation").unwrap())?; let parent_ops = bad_op.parents(); if parent_ops.len() > 1 { return Err(CommandError::UserError(