fix(misc): fix clippy warnings

This commit is contained in:
Federico Terzi 2022-08-20 11:35:43 +02:00
parent ee14983f7c
commit 59e675dec8
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ pub enum Event {
VirtualSeparator, VirtualSeparator,
} }
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum Key { pub enum Key {
// Modifiers // Modifiers
Alt, Alt,

View File

@ -26,7 +26,7 @@ pub mod regex;
pub mod rolling; pub mod rolling;
mod util; mod util;
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct MatchResult<Id> { pub struct MatchResult<Id> {
pub id: Id, pub id: Id,
pub trigger: String, pub trigger: String,

View File

@ -185,7 +185,7 @@ impl<Id: Clone> RollingMatcher<Id> {
// in the state. // in the state.
if !has_previous_state { if !has_previous_state {
if let Some(MatcherTreeRef::Node(node)) = node.word_separators.as_ref() { if let Some(MatcherTreeRef::Node(node)) = node.word_separators.as_ref() {
refs.extend(self.find_refs(&*node, event, true)); refs.extend(self.find_refs(node, event, true));
} }
} }