aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-15 12:07:30 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-15 12:07:30 +0200
commited72a2e16ece757941786f586bd2a80022892a74 (patch)
treeea0e93ab6daca1ef4c76d62bd311349dc12a86ee /src/state.rs
parentee967aa634b5f8e9d30329d587538f1371a5da95 (diff)
downloadmarkdown-rs-ed72a2e16ece757941786f586bd2a80022892a74.tar.gz
markdown-rs-ed72a2e16ece757941786f586bd2a80022892a74.tar.bz2
markdown-rs-ed72a2e16ece757941786f586bd2a80022892a74.zip
Add derive of `Eq` where possible
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.rs b/src/state.rs
index 105cade..aae153f 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -2,7 +2,7 @@ use crate::construct;
use crate::tokenizer::Tokenizer;
/// The result of a state.
-#[derive(Debug, PartialEq, Copy, Clone)]
+#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum State {
/// Move to [`Name`][] next.
Next(Name),
@@ -15,7 +15,7 @@ pub enum State {
}
/// Names of functions to move to.
-#[derive(Debug, Clone, Copy, PartialEq)]
+#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[allow(clippy::enum_variant_names)]
pub enum Name {
AttentionStart,