remove cron CI and add manual trigger #287
GitHub Actions / clippy
failed
Mar 7, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 68 in src/slice/cmp.rs
github-actions / clippy
non-canonical implementation of `partial_cmp` on an `Ord` type
error: non-canonical implementation of `partial_cmp` on an `Ord` type
--> src/slice/cmp.rs:60:1
|
60 | / impl<A: Alignment> PartialOrd for AlignedSlice<A> {
61 | | #[inline]
62 | | fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
| | _______________________________________________________________________-
63 | || let slice: &[u8] = self;
64 | || let other_slice: &[u8] = other;
65 | ||
66 | || slice.partial_cmp(other_slice)
67 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
68 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
Check failure on line 73 in src/bytes/cmp.rs
github-actions / clippy
non-canonical implementation of `partial_cmp` on an `Ord` type
error: non-canonical implementation of `partial_cmp` on an `Ord` type
--> src/bytes/cmp.rs:65:1
|
65 | / impl<A: Alignment> PartialOrd for AlignedBytes<A> {
66 | | #[inline]
67 | | fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
| | _______________________________________________________________________-
68 | || let slice: &AlignedSlice<A> = self;
69 | || let other_slice: &AlignedSlice<A> = other;
70 | ||
71 | || slice.partial_cmp(other_slice)
72 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
73 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
= note: `-D clippy::non-canonical-partial-ord-impl` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::non_canonical_partial_ord_impl)]`
Loading