warning: trivial regex
--> lib.rs:
|
841 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, FromStr, Display)]
| ^^^^^^^
|
= help: consider using `==` on `str`s
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
The generated FromStr macro could probably generate an #[allow(clippy::trivial_regex)] if this is intended, so that it can be used more easily in projects that enforce a clean clippy output.
Using this enum:
causes a clippy warning:
The generated FromStr macro could probably generate an
#[allow(clippy::trivial_regex)]
if this is intended, so that it can be used more easily in projects that enforce a clean clippy output.