fix(misc): fix clippy warnings
This commit is contained in:
parent
ee14983f7c
commit
59e675dec8
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user