Update to Rust edition 2024 and rename gen module to generator #48
Annotations
2 warnings
|
non-canonical implementation of `partial_cmp` on an `Ord` type:
src/id.rs#L51
warning: non-canonical implementation of `partial_cmp` on an `Ord` type
--> src/id.rs:51:1
|
51 | / impl PartialOrd for Flake {
52 | | fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
| | _______________________________________________________________________-
53 | || Some(self.0.cmp(&other.0))
54 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
55 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#non_canonical_partial_ord_impl
= note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
|
|
importing legacy numeric constants:
src/id.rs#L7
warning: importing legacy numeric constants
--> src/id.rs:7:5
|
7 | u128,
| ^^^^
|
= help: remove this import
= note: then `u128::<CONST>` will resolve to the respective associated constant
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#legacy_numeric_constants
= note: `#[warn(clippy::legacy_numeric_constants)]` on by default
|