mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Fix CI lint errors
This commit is contained in:
parent
90a29ed324
commit
2d8f5e9c79
3 changed files with 4 additions and 4 deletions
|
|
@ -12,6 +12,7 @@ pub enum Shell {
|
|||
Fish,
|
||||
Elvish,
|
||||
Nushell,
|
||||
#[allow(clippy::enum_variant_names)]
|
||||
PowerShell,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue