Skip to content

Commit 913ca04

Browse files
committed
style: Clippy
1 parent 1ca2fb6 commit 913ca04

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/git-fixture/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Dag {
5757
import_root: &std::path::Path,
5858
marks: &mut std::collections::HashMap<String, String>,
5959
) -> eyre::Result<()> {
60-
for event in events.into_iter() {
60+
for event in events.iter() {
6161
match event {
6262
Event::Import(path) => {
6363
let path = import_root.join(path);
@@ -144,7 +144,7 @@ impl Dag {
144144
let start_commit = current_oid(cwd)?;
145145
for run in events {
146146
checkout(cwd, &start_commit)?;
147-
self.run_events(&run, cwd, import_root, marks)?;
147+
self.run_events(run, cwd, import_root, marks)?;
148148
}
149149
}
150150
Event::Head(reference) => {

src/graph/ops.rs

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ fn drop_first_branch_by_tree_id(
179179
node: &mut Node,
180180
protected_tree_ids: std::collections::HashSet<git2::Oid>,
181181
) -> bool {
182+
#![allow(clippy::if_same_then_else)]
183+
182184
assert!(!node.action.is_protected());
183185
if node.branches.is_empty() {
184186
match node.children.len() {

0 commit comments

Comments
 (0)