Skip to content

Commit

Permalink
Fix more clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Dec 20, 2024
1 parent 3fb5b22 commit 5188d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/bytecode/typecheck/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ impl<'ast> TypeEqBounded<'ast> for record::Record<'ast> {
// good ordering (we could derive it, albeit it would be a bit artificial), so we just
// ignore this part - it might lead to equate a bit less than we could, in presence of
// dynamic fields on both side that are in different order, but this is at least sound.
fn sort_field_defs<'ast>(field_defs: &mut Vec<&'ast FieldDef<'ast>>) {
fn sort_field_defs<'ast>(field_defs: &mut [&'ast FieldDef<'ast>]) {
field_defs.sort_by_cached_key(|field| -> Vec<Option<FastOrdIdent>> {
field
.path
Expand Down

0 comments on commit 5188d54

Please sign in to comment.