Skip to content

Commit

Permalink
evolog: Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
JDSeiler committed Dec 21, 2024
1 parent 153a6ec commit 5fbc376
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cli/src/commands/evolog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ pub(crate) fn cmd_evolog(
iter_nodes.push(r.unwrap().clone());
}
} else {
for n in graph_nodes.iter() {
for n in graph_nodes {
iter_nodes.push(n.as_ref().unwrap().clone());
}
}

for node in iter_nodes.iter() {
for node in iter_nodes {
let (commit, edges) = node.clone();
let mut graphlog_edges = vec![];
for edge in edges {
Expand Down Expand Up @@ -239,16 +239,15 @@ pub(crate) fn cmd_evolog(
};

for commit in commits_iter {
with_content_format
.write(formatter, |formatter| template.format(&commit, formatter))?;
with_content_format.write(formatter, |formatter| template.format(commit, formatter))?;
if let Some(renderer) = &diff_renderer {
let predecessors: Vec<_> = commit.predecessors().try_collect()?;
let width = ui.term_width();
renderer.show_inter_diff(
ui,
formatter,
&predecessors,
&commit,
commit,
&EverythingMatcher,
width,
)?;
Expand Down

0 comments on commit 5fbc376

Please sign in to comment.