We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8edd9a commit c6dca68Copy full SHA for c6dca68
clippy_utils/src/consts.rs
@@ -253,11 +253,11 @@ impl PartialOrd for FullInt {
253
impl Ord for FullInt {
254
#[must_use]
255
fn cmp(&self, other: &Self) -> Ordering {
256
- match (self, other) {
257
- (&Self::S(s), &Self::S(o)) => s.cmp(&o),
258
- (&Self::U(s), &Self::U(o)) => s.cmp(&o),
259
- (&Self::S(s), &Self::U(o)) => Self::cmp_s_u(s, o),
260
- (&Self::U(s), &Self::S(o)) => Self::cmp_s_u(o, s).reverse(),
+ match (*self, *other) {
+ (Self::S(s), Self::S(o)) => s.cmp(&o),
+ (Self::U(s), Self::U(o)) => s.cmp(&o),
+ (Self::S(s), Self::U(o)) => Self::cmp_s_u(s, o),
+ (Self::U(s), Self::S(o)) => Self::cmp_s_u(o, s).reverse(),
261
}
262
263
0 commit comments