Merge pull request #944 from kit494way/fix-ci-lint-error

Fix CI lint errors
This commit is contained in:
Denis Isidoro 2025-03-10 15:56:56 -03:00 committed by GitHub
commit 436278cc8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 5 deletions

View file

@ -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

View file

@ -12,6 +12,7 @@ pub enum Shell {
Fish,
Elvish,
Nushell,
#[allow(clippy::enum_variant_names)]
PowerShell,
}

View file

@ -50,7 +50,7 @@ pub fn parse_ansi(ansi: &str) -> Option<style::Color> {
}
#[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;

View file

@ -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() {