Path: blob/main/release-content/migration-guides/clone_behavior_no_longer_eq.md
6592 views
---
---
CloneBehavior
no longer implements PartialEq
or Eq
and thus does not work with the ==
and !=
operators, as the internal comparisons involve comparing function pointers which may result in unexpected results.
Use pattern matching to check for equality instead: