mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Merge pull request #944 from kit494way/fix-ci-lint-error
Fix CI lint errors
This commit is contained in:
commit
436278cc8e
4 changed files with 8 additions and 5 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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