diff --git a/src/cli.rs b/src/cli.rs index bf77585..eab6c8d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -156,7 +156,7 @@ impl Cli { let has_stdin = stdin.is_some(); let conditions: Result> = - self.query.as_ref().map(|s| parse(&s)).unwrap_or(Ok(vec![])); + self.query.as_ref().map(|s| parse(s)).unwrap_or(Ok(vec![])); let mut app = match conditions { Ok(c) => App::new( SearchConfig { diff --git a/src/models/line.rs b/src/models/line.rs index 41242d3..b82de6e 100644 --- a/src/models/line.rs +++ b/src/models/line.rs @@ -66,7 +66,7 @@ impl Line { line_no: self.line_no, text: self.text.clone(), matches: self.matches.clone(), - filtered: filtered, + filtered, } }