async-task/examples
Taiki Endo 4d1362c16b Fix clippy::non_canonical_partial_ord_impl warning in example
```
warning: non-canonical implementation of `partial_cmp` on an `Ord` type
  --> examples/with-metadata.rs:31:1
   |
31 | /  impl PartialOrd for ByDuration {
32 | |      fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
   | | _______________________________________________________________________-
33 | ||         self.duration()
34 | ||             .partial_cmp(&other.duration())
35 | ||             .map(|ord| ord.reverse())
36 | ||     }
   | ||_____- help: change this to: `{ Some(self.cmp(other)) }`
37 | |  }
   | |__^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
   = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
```
2023-10-08 14:43:10 +09:00
..
spawn-local.rs More docs and small fixes 2020-09-20 02:12:51 +02:00
spawn-on-thread.rs More docs and small fixes 2020-09-20 02:12:51 +02:00
spawn.rs More docs and small fixes 2020-09-20 02:12:51 +02:00
with-metadata.rs Fix clippy::non_canonical_partial_ord_impl warning in example 2023-10-08 14:43:10 +09:00