diff --git a/cli/src/commands/operation/diff.rs b/cli/src/commands/operation/diff.rs index 076ba457c..07ca07043 100644 --- a/cli/src/commands/operation/diff.rs +++ b/cli/src/commands/operation/diff.rs @@ -160,7 +160,7 @@ pub fn cmd_op_diff( &commit_summary_template, (!args.no_graph).then_some(graph_style), &with_content_format, - diff_renderer, + diff_renderer.as_ref(), ) } @@ -178,7 +178,7 @@ pub fn show_op_diff( commit_summary_template: &TemplateRenderer, graph_style: Option, with_content_format: &LogContentFormat, - diff_renderer: Option, + diff_renderer: Option<&DiffRenderer>, ) -> Result<(), CommandError> { let changes = compute_operation_commits_diff(current_repo, from_repo, to_repo)?; diff --git a/cli/src/commands/operation/show.rs b/cli/src/commands/operation/show.rs index 009344ffb..016ef00f2 100644 --- a/cli/src/commands/operation/show.rs +++ b/cli/src/commands/operation/show.rs @@ -93,6 +93,6 @@ pub fn cmd_op_show( &commit_summary_template, (!args.no_graph).then_some(graph_style), &with_content_format, - diff_renderer, + diff_renderer.as_ref(), ) }