Fix CI lint errors

This commit is contained in:
KITAGAWA Yasutaka 2025-02-23 07:51:26 +09:00
parent 90a29ed324
commit 2d8f5e9c79
No known key found for this signature in database
GPG key ID: EF503E87E8731A87
3 changed files with 4 additions and 4 deletions

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