diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e2f261..5bc3566 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,10 @@ # for simplicity we are compiling and testing everything on the Ubuntu environment only. # For multi-OS testing see the `cross.yml` workflow. -on: [push] +on: + push: + pull_request: + branches: [master] name: CI diff --git a/src/common/shell.rs b/src/common/shell.rs index 13f5bbf..87e34eb 100644 --- a/src/common/shell.rs +++ b/src/common/shell.rs @@ -12,6 +12,7 @@ pub enum Shell { Fish, Elvish, Nushell, + #[allow(clippy::enum_variant_names)] PowerShell, } diff --git a/src/common/terminal.rs b/src/common/terminal.rs index e20432b..b88bf41 100644 --- a/src/common/terminal.rs +++ b/src/common/terminal.rs @@ -50,7 +50,7 @@ pub fn parse_ansi(ansi: &str) -> Option { } #[derive(Debug, Clone)] -pub struct Color(pub style::Color); +pub struct Color(#[allow(unused)] pub style::Color); // suppress warning: field `0` is never read. impl FromStr for Color { type Err = &'static str; diff --git a/src/parser.rs b/src/parser.rs index bcdda8f..e1d4d2b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -254,9 +254,8 @@ impl<'a> Parser<'a> { } // duplicate - if !item.tags.is_empty() { - item.comment.is_empty(); - } + // if !item.tags.is_empty() && !item.comment.is_empty() {} + // blank if line.is_empty() { if !item.snippet.is_empty() {