File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ impl Dag {
57
57
import_root : & std:: path:: Path ,
58
58
marks : & mut std:: collections:: HashMap < String , String > ,
59
59
) -> eyre:: Result < ( ) > {
60
- for event in events. into_iter ( ) {
60
+ for event in events. iter ( ) {
61
61
match event {
62
62
Event :: Import ( path) => {
63
63
let path = import_root. join ( path) ;
@@ -144,7 +144,7 @@ impl Dag {
144
144
let start_commit = current_oid ( cwd) ?;
145
145
for run in events {
146
146
checkout ( cwd, & start_commit) ?;
147
- self . run_events ( & run, cwd, import_root, marks) ?;
147
+ self . run_events ( run, cwd, import_root, marks) ?;
148
148
}
149
149
}
150
150
Event :: Head ( reference) => {
Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ fn drop_first_branch_by_tree_id(
179
179
node : & mut Node ,
180
180
protected_tree_ids : std:: collections:: HashSet < git2:: Oid > ,
181
181
) -> bool {
182
+ #![ allow( clippy:: if_same_then_else) ]
183
+
182
184
assert ! ( !node. action. is_protected( ) ) ;
183
185
if node. branches . is_empty ( ) {
184
186
match node. children . len ( ) {
You can’t perform that action at this time.
0 commit comments