Skip to content

Commit 2f431bc

Browse files
committed
chore(style): apply Clippy suggestion
1 parent 00ef784 commit 2f431bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directed/idastar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ where
139139
})
140140
})
141141
.collect::<Vec<_>>();
142-
neighbs.sort_unstable_by(|(_, _, c1), (_, _, c2)| c1.cmp(c2));
142+
neighbs.sort_unstable_by_key(|(_, _, c1)| *c1);
143143
neighbs
144144
};
145145
let mut min = None;

0 commit comments

Comments
 (0)