Skip to content

Commit

Permalink
Flip comparison order
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Oct 25, 2023
1 parent 2d75e20 commit e2acc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_utils/src/intern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Internable for str {
}

fn ref_eq(&self, other: &Self) -> bool {
self.len() == other.len() && self.as_ptr() == other.as_ptr()
self.as_ptr() == other.as_ptr() && self.len() == other.len()
}

fn ref_hash<H: std::hash::Hasher>(&self, state: &mut H) {
Expand Down

0 comments on commit e2acc8b

Please sign in to comment.